public final class CstFieldRef extends CstMemberRef
CONSTANT_Fieldref_info.| Constructor and Description |
|---|
CstFieldRef(CstType definingClass,
CstNat nat)
Constructs an instance.
|
| 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.
|
static CstFieldRef |
forPrimitiveType(Type primitiveType)
Returns an instance of this class that represents the static
field which should hold the class corresponding to a given
primitive type.
|
Type |
getType()
Returns the type of this field.
|
java.lang.String |
typeName()
Returns the human name for the particular type of constant
this instance is.
|
equals, getDefiningClass, getNat, hashCode, isCategory2, toHuman, toStringgetBasicFrameType, getBasicType, getFrameType, isConstantpublic static CstFieldRef forPrimitiveType(Type primitiveType)
Type.INT, this
method returns an instance corresponding to the field
java.lang.Integer.TYPE.primitiveType - non-null; the primitive typenon-null; the corresponding static fieldpublic java.lang.String typeName()
public Type getType()
non-null; the field's typeprotected 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 CstMemberRefother - non-null; the instance to compare to-1, 0, or 1, as usual
for a comparisonCopyright © 2020. All Rights Reserved.