CONSTANT_Fieldref_info.
| Access | Constructor and Description |
|---|---|
| public | CstFieldRef(CstType
non-null; the type of the defining classnon-null; the name-and-typeConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected int | compareTo0(Constant
non-null; the instance to compare toOverrides org. |
| public static CstFieldRef | Returns: non-null; the corresponding static fieldnon-null; the primitive typeReturns an instance of this class that represents the static field which should hold the class corresponding to a given primitive type. |
| public Type | Returns: non-null; the field's typeImplements org. |
| public String | typeName()
Implements abstract org. |
| CstFieldRef | back to summary |
|---|---|
| public CstFieldRef(CstType definingClass, CstNat nat) Constructs an instance. | |
| compareTo0 | back to summary |
|---|---|
| protected int compareTo0(Constant other) Overrides org. Doc from org. Compare the values of this and another instance, which are guaranteed to be of the same class. Subclasses must implement this. Note This implementation just compares the defining
class and name, and it is up to subclasses to compare the rest
after calling
| |
| forPrimitiveType | back to summary |
|---|---|
| public 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. For example, if given
| |
| getType | back to summary |
|---|---|
| public Type getType() Implements org. Returns the type of this field.
| |
| typeName | back to summary |
|---|---|
| public String typeName() Implements abstract org. Doc from org. Returns the human name for the particular type of constant this instance is. | |