KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > umd > cs > findbugs > ba > ClassMember


1 /*
2  * Bytecode Analysis Framework
3  * Copyright (C) 2005, University of Maryland
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19 package edu.umd.cs.findbugs.ba;
20
21 import java.io.Serializable JavaDoc;
22
23 /**
24  * Common super-interface for class members (fields and methods).
25  *
26  * @see edu.umd.cs.findbugs.ba.XField
27  * @see edu.umd.cs.findbugs.ba.XMethod
28  * @author David Hovemeyer
29  */

30 public interface ClassMember extends Comparable JavaDoc<ClassMember>, Serializable JavaDoc {
31
32     /**
33      * Get the name of the field/method.
34      */

35     public String JavaDoc getName();
36
37     /**
38      * Get the full name of the class the field/method is defined in.
39      */

40     public String JavaDoc getClassName();
41
42     /**
43      * Get the package name of the class the field/method is defined in.
44      */

45     public String JavaDoc getPackageName();
46
47     
48     /**
49      * Get the signature representing the field/method's type.
50      */

51     public String JavaDoc getSignature();
52
53     /**
54      * Get the field/method's access flags.
55      */

56     public int getAccessFlags();
57
58     /**
59      * Is this a static field/method?
60      */

61     public boolean isStatic();
62
63     /**
64      * Is this a final field/method?
65      */

66     public boolean isFinal();
67
68     /**
69      * Is this a public field/method?
70      */

71     public boolean isPublic();
72
73     /**
74      * Is this a protected field/method?
75      */

76     public boolean isProtected();
77     
78     /**
79      * Is this a private field/method?
80      */

81     public boolean isPrivate();
82     
83     /**
84      * Did we find a declaration of this member?
85      */

86     public boolean isResolved();
87
88 }
89
Popular Tags