public abstract class CstMemberRef extends TypedConstant
CONSTANT_*ref_info.| Modifier and Type | Method and Description |
|---|---|
protected int |
compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed
to be of the same class.
|
boolean |
equals(Object other) |
CstType |
getDefiningClass()
Gets the type of the defining class.
|
CstNat |
getNat()
Gets the defining name-and-type.
|
int |
hashCode() |
boolean |
isCategory2()
Returns
true if this instance is a category-2 constant,
meaning it takes up two slots in the constant pool, or
false if this instance is category-1. |
String |
toHuman()
Return the "human" string form of this instance.
|
String |
toString() |
getBasicFrameType, getBasicType, getFrameType, isConstantclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeprotected int compareTo0(Constant other)
Note: This implementation just compares the defining
class and name, and it is up to subclasses to compare the rest
after calling super.compareTo0().
compareTo0 in class Constantother - non-null; the instance to compare to-1, 0, or 1, as usual
for a comparisonpublic final boolean isCategory2()
true if this instance is a category-2 constant,
meaning it takes up two slots in the constant pool, or
false if this instance is category-1.isCategory2 in class Constanttrue iff this instance is category-2public final String toHuman()
toString().non-null; the human string formpublic final CstType getDefiningClass()
non-null; the type of defining classpublic final CstNat getNat()
non-null; the name-and-typeCopyright © 2016. All Rights Reserved.