| Modifier and Type | Field and Description |
|---|---|
| public static final CstType | BOOLEAN
|
| public static final CstType | BOOLEAN_ARRAY
|
| public static final CstType | BYTE
|
| public static final CstType | BYTE_ARRAY
|
| public static final CstType | CHAR_ARRAY
|
| public static final CstType | CHARACTER
|
| private CstString | descriptor
|
| public static final CstType | DOUBLE
|
| public static final CstType | DOUBLE_ARRAY
|
| public static final CstType | FLOAT
|
| public static final CstType | FLOAT_ARRAY
|
| public static final CstType | INT_ARRAY
|
| public static final CstType | INTEGER
|
| private static final HashMap | interns
|
| public static final CstType | LONG
|
| public static final CstType | LONG_ARRAY
|
| public static final CstType | OBJECT
|
| public static final CstType | SHORT
|
| public static final CstType | SHORT_ARRAY
|
| private final Type | type
|
| public static final CstType | VOID
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected int | compareTo0(Constant
non-null; the instance to compare toImplements abstract org. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public static CstType | Returns: non-null; the corresponding wrapper classnon-null; the primitive typeReturns an instance of this class that represents the wrapper class corresponding to a given primitive type. |
| public Type | Returns: non-null; the type corresponding to the nameGets the underlying type (as opposed to the type corresponding
to this instance as a constant, which is always
|
| public CstString | |
| public Type | getType()
Implements org. |
| public int | |
| public static CstType | |
| public boolean | isCategory2()
Implements abstract org. 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.
|
| public String | toHuman()
Implements org. |
| public String | |
| public String | typeName()
Implements abstract org. |
| BOOLEAN | back to summary |
|---|---|
| public static final CstType BOOLEAN
| |
| BOOLEAN_ARRAY | back to summary |
|---|---|
| public static final CstType BOOLEAN_ARRAY
| |
| BYTE | back to summary |
|---|---|
| public static final CstType BYTE
| |
| BYTE_ARRAY | back to summary |
|---|---|
| public static final CstType BYTE_ARRAY
| |
| CHAR_ARRAY | back to summary |
|---|---|
| public static final CstType CHAR_ARRAY
| |
| CHARACTER | back to summary |
|---|---|
| public static final CstType CHARACTER
| |
| descriptor | back to summary |
|---|---|
| private CstString descriptor
| |
| DOUBLE | back to summary |
|---|---|
| public static final CstType DOUBLE
| |
| DOUBLE_ARRAY | back to summary |
|---|---|
| public static final CstType DOUBLE_ARRAY
| |
| FLOAT | back to summary |
|---|---|
| public static final CstType FLOAT
| |
| FLOAT_ARRAY | back to summary |
|---|---|
| public static final CstType FLOAT_ARRAY
| |
| INT_ARRAY | back to summary |
|---|---|
| public static final CstType INT_ARRAY
| |
| INTEGER | back to summary |
|---|---|
| public static final CstType INTEGER
| |
| interns | back to summary |
|---|---|
| private static final HashMap<Type, CstType> interns
| |
| LONG | back to summary |
|---|---|
| public static final CstType LONG
| |
| LONG_ARRAY | back to summary |
|---|---|
| public static final CstType LONG_ARRAY
| |
| OBJECT | back to summary |
|---|---|
| public static final CstType OBJECT
| |
| SHORT | back to summary |
|---|---|
| public static final CstType SHORT
| |
| SHORT_ARRAY | back to summary |
|---|---|
| public static final CstType SHORT_ARRAY
| |
| type | back to summary |
|---|---|
| private final Type type
| |
| VOID | back to summary |
|---|---|
| public static final CstType VOID
| |
| CstType | back to summary |
|---|---|
| public CstType(Type type) Constructs an instance.
| |
| compareTo0 | back to summary |
|---|---|
| protected int compareTo0(Constant other) Implements abstract 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. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| forBoxedPrimitiveType | back to summary |
|---|---|
| public static CstType forBoxedPrimitiveType(Type primitiveType) Returns an instance of this class that represents the wrapper
class corresponding to a given primitive type. For example, if
given | |
| getClassType | back to summary |
|---|---|
| public Type getClassType() Gets the underlying type (as opposed to the type corresponding
to this instance as a constant, which is always
| |
| getDescriptor | back to summary |
|---|---|
| public CstString getDescriptor() Gets the type descriptor for this instance.
| |
| getType | back to summary |
|---|---|
| public Type getType() Implements org. Doc from org. Gets the type associated with this instance.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intern | back to summary |
|---|---|
| public static CstType intern(Type type) Returns an interned instance of this class for the given type. | |
| isCategory2 | back to summary |
|---|---|
| public boolean isCategory2() Implements abstract org. Doc from org. Returns
| |
| toHuman | back to summary |
|---|---|
| public String toHuman() Implements org. Doc from org. Return the "human" string form of this instance. This is
generally less "debuggy" than
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| 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. | |