Methods Summary |
---|
protected int | compareTo0(Constant other){@inheritDoc}
Note: This implementation just compares the defining
class and name, and it is up to subclasses to compare the rest
after calling {@code super.compareTo0()}.
CstMemberRef otherMember = (CstMemberRef) other;
int cmp = definingClass.compareTo(otherMember.definingClass);
if (cmp != 0) {
return cmp;
}
CstUtf8 thisName = nat.getName();
CstUtf8 otherName = otherMember.nat.getName();
return thisName.compareTo(otherName);
|
public final boolean | equals(java.lang.Object other){@inheritDoc}
if ((other == null) || (getClass() != other.getClass())) {
return false;
}
CstMemberRef otherRef = (CstMemberRef) other;
return definingClass.equals(otherRef.definingClass) &&
nat.equals(otherRef.nat);
|
public final CstType | getDefiningClass()Gets the type of the defining class.
return definingClass;
|
public final CstNat | getNat()Gets the defining name-and-type.
return nat;
|
public final int | hashCode(){@inheritDoc}
return (definingClass.hashCode() * 31) ^ nat.hashCode();
|
public final boolean | isCategory2(){@inheritDoc}
return false;
|
public final java.lang.String | toHuman(){@inheritDoc}
return definingClass.toHuman() + '." + nat.toHuman();
|
public final java.lang.String | toString(){@inheritDoc}
return typeName() + '{" + toHuman() + '}";
|