|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
HMember
is an interface that reflects identifying information
about a single member (a field or a method) or a constructor.
HClass
,
HField
,
HMethod
,
HConstructor
Nested Class Summary | |
static class |
HMember.MemberComparator
Implementation of java.util.Comparator for objects
implementing HMember , for consistency among
implementations. |
Field Summary | |
static ArrayFactory |
arrayFactory
Array factory: returns new HMember[] . |
static Comparator |
memberComparator
|
Method Summary | |
int |
compareTo(Object o)
Compares two HMember s lexicographically; first by
declaring class, then by name, and lastly by descriptor. |
HClass |
getDeclaringClass()
Returns the HClass object representing the class or
interface that declares the member or constructor represented by this
HMember . |
String |
getDescriptor()
Returns the type descriptor for this member. |
int |
getModifiers()
Returns the Java language modifiers for the member of constructor represented by this HMember , as an integer. |
String |
getName()
Returns the simple name of the underlying member or constructor represented by this HMember . |
int |
hashCode()
Returns a hashcode for this HMember . |
boolean |
isSynthetic()
Indicates whether this field or method is 'real' or if it has been synthesized by the compiler in order to implement scoping of inner classes. |
Field Detail |
public static final Comparator memberComparator
public static final ArrayFactory arrayFactory
HMember[]
.
Method Detail |
public HClass getDeclaringClass()
HClass
object representing the class or
interface that declares the member or constructor represented by this
HMember
.
public String getDescriptor()
public String getName()
HMember
.
public int getModifiers()
HMember
, as an integer. The
Modifier
class should be used to decode the
modifiers in the integer.
Modifier
public int hashCode()
HMember
. This is
computed as the exclusive-or of the hashcodes for the
underlying member's declaring class, name, and descriptor
string.
hashCode
in class Object
public boolean isSynthetic()
public int compareTo(Object o)
HMember
s lexicographically; first by
declaring class, then by name, and lastly by descriptor.
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |