public final class CstProtoRef extends TypedConstant
| Constructor and Description |
|---|
CstProtoRef(Prototype prototype) |
| 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(java.lang.Object other) |
Prototype |
getPrototype() |
Type |
getType()
Gets the type associated with this instance.
|
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. |
static CstProtoRef |
make(CstString descriptor)
Makes an instance for the given value.
|
java.lang.String |
toHuman()
Return the "human" string form of this instance.
|
java.lang.String |
toString() |
java.lang.String |
typeName()
Returns the human name for the particular type of constant
this instance is.
|
getBasicFrameType, getBasicType, getFrameType, isConstantpublic CstProtoRef(Prototype prototype)
public static CstProtoRef make(CstString descriptor)
descriptor - the method descriptornon-null; the appropriate instancepublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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 java.lang.String typeName()
protected int compareTo0(Constant other)
compareTo0 in class Constantother - non-null; the instance to compare to-1, 0, or 1, as usual
for a comparisonpublic java.lang.String toHuman()
toString().non-null; the human string formpublic final java.lang.String toString()
toString in class java.lang.Objectpublic Prototype getPrototype()
public Type getType()
TypeBearernon-null; the typeCopyright © 2020. All Rights Reserved.