public class MemberInfoBase extends java.lang.Object implements MemberInfo
Constructor and Description |
---|
MemberInfoBase(ClassInfo myClassInfo,
int modifiers,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isAccessibleInContext(ClassInfo definingClass,
ClassInfo accessClass)
Returns true iff this member is accessible in the context
defined by definingClass (the class containing the
reference to the member) and accessClass (the type of the
expression used to access this member).
|
int |
modifiers()
Return the modifiers on this member
|
ClassInfo |
myClassInfo()
Return the ClassInfo of the class that contains this
member.
|
java.lang.String |
name()
Return the name of this member.
|
java.lang.String |
toString() |
public MemberInfoBase(ClassInfo myClassInfo, int modifiers, java.lang.String name)
public ClassInfo myClassInfo()
MemberInfo
myClassInfo
in interface MemberInfo
public int modifiers()
MemberInfo
modifiers
in interface MemberInfo
public java.lang.String name()
MemberInfo
name
in interface MemberInfo
public boolean isAccessibleInContext(ClassInfo definingClass, ClassInfo accessClass)
MemberInfo
isAccessibleInContext
in interface MemberInfo
definingClass
- the ClassInfo of the class in which the access occurs.accessClass
- the ClassInfo of the class used to access the member.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object