01: /*
02: * Bytecode Analysis Framework
03: * Copyright (C) 2005, University of Maryland
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2.1 of the License, or (at your option) any later version.
09: *
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;
22:
23: import edu.umd.cs.findbugs.classfile.FieldOrMethodName;
24: import edu.umd.cs.findbugs.internalAnnotations.DottedClassName;
25:
26: /**
27: * Common super-interface for class members (fields and methods).
28: *
29: * @see edu.umd.cs.findbugs.ba.XField
30: * @see edu.umd.cs.findbugs.ba.XMethod
31: * @author David Hovemeyer
32: */
33: public interface ClassMember extends Serializable, AccessibleEntity,
34: Comparable, FieldOrMethodName {
35:
36: /**
37: * Get the full (dotted) name of the class (if the object represents a class)
38: * or the class the entity is defined in (if a field or method).
39: */
40: public @DottedClassName
41: String getClassName();
42:
43: /**
44: * Get the (dotted) name of the package in which the entity is defined.
45: */
46: public @DottedClassName
47: String getPackageName();
48:
49: /**
50: * Get the name of the field/method.
51: */
52: public String getName();
53:
54: /**
55: * Get the signature representing the field/method's type.
56: */
57: public String getSignature();
58:
59: /**
60: * Did we find a declaration of this entity?
61: */
62: public boolean isResolved();
63:
64: }
|