public class MemberRef
extends java.lang.Object
| Constructor and Description |
|---|
MemberRef(Type declaringClass,
NameAndType nameAndType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
declaringClass()
Get the type of the class which declared the member.
|
boolean |
equals(java.lang.Object obj)
Check if an object is equal to this reference.
|
int |
hashCode()
Hash the member reference.
|
java.lang.String |
name()
Get the name of the member.
|
NameAndType |
nameAndType()
Get the name and type of the member.
|
java.lang.String |
toString()
Convert the reference to a string.
|
Type |
type()
Get the type of the member.
|
public MemberRef(Type declaringClass, NameAndType nameAndType)
declaringClass - The type of the class which declared the member.nameAndType - The name and type of the member.public Type declaringClass()
public java.lang.String name()
public Type type()
public NameAndType nameAndType()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to compare against.public int hashCode()
hashCode in class java.lang.Object