==.
| Modifier and Type | Field and Description |
|---|---|
| public static final Type | ANNOTATION
|
| private Type | arrayType
|
| private final int | basicType
basic type corresponding to this type; one of the
|
| public static final Type | BOOLEAN
|
| public static final Type | BOOLEAN_ARRAY
|
| public static final Type | BOOLEAN_CLASS
|
| public static final int | BT_ADDR
basic type constant for a return address |
| public static final int | BT_BOOLEAN
basic type constant for |
| public static final int | BT_BYTE
basic type constant for |
| public static final int | BT_CHAR
basic type constant for |
| public static final int | BT_COUNT
count of basic type constants |
| public static final int | BT_DOUBLE
basic type constant for |
| public static final int | BT_FLOAT
basic type constant for |
| public static final int | BT_INT
basic type constant for |
| public static final int | BT_LONG
basic type constant for |
| public static final int | BT_OBJECT
basic type constant for |
| public static final int | BT_SHORT
basic type constant for |
| public static final int | BT_VOID
basic type constant for |
| public static final Type | BYTE
|
| public static final Type | BYTE_ARRAY
|
| public static final Type | BYTE_CLASS
|
| public static final Type | CHAR
|
| public static final Type | CHAR_ARRAY
|
| public static final Type | CHARACTER_CLASS
|
| public static final Type | CLASS
|
| private String | className
|
| public static final Type | CLONEABLE
|
| private Type | componentType
|
| private final String | descriptor
|
| public static final Type | DOUBLE
|
| public static final Type | DOUBLE_ARRAY
|
| public static final Type | DOUBLE_CLASS
|
| public static final Type | FLOAT
|
| public static final Type | FLOAT_ARRAY
|
| public static final Type | FLOAT_CLASS
|
| private Type | initializedType
|
| public static final Type | INT
|
| public static final Type | INT_ARRAY
|
| public static final Type | INTEGER_CLASS
|
| private static final HashMap | internTable
|
| public static final Type | KNOWN_NULL
|
| public static final Type | LONG
|
| public static final Type | LONG_ARRAY
|
| public static final Type | LONG_CLASS
|
| private final int | newAt
|
| public static final Type | OBJECT
|
| public static final Type | OBJECT_ARRAY
|
| public static final Type | RETURN_ADDRESS
|
| public static final Type | SERIALIZABLE
|
| public static final Type | SHORT
|
| public static final Type | SHORT_ARRAY
|
| public static final Type | SHORT_CLASS
|
| public static final Type | STRING
|
| public static final Type | THROWABLE
|
| public static final Type | VOID
|
| public static final Type | VOID_CLASS
|
| Access | Constructor and Description |
|---|---|
| private | Type(String
non-null; the field descriptor for the typebasic type corresponding to this type; one of the
basicType, int BT_* constants>= -1; allocation bytecode indexConstructs an instance corresponding to an "uninitialized type." This is a private constructor; use one of the public static methods to get instances. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Type | Returns: non-null; an appropriately-constructed instance>= 0; the allocation bytecode indexReturns a new interned instance which is identical to this one, except it is indicated as uninitialized and allocated at the given bytecode index. |
| public int | compareTo(Type
the object to be compared. other)Implements java. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public Type | Returns: non-null; the array typeGets the type corresponding to an array of this type. |
| public int | getBasicFrameType()
Implements org. |
| public int | getBasicType()
Implements org. |
| public int | |
| public String | Returns: non-null; the internal-form class nameGets the name of the class this type corresponds to, in internal form. |
| public Type | |
| public String | |
| public Type | getFrameType()
Implements org. |
| public Type | Returns: non-null; the initialized typeGets the initialized type corresponding to this instance, but only if this instance is in fact an uninitialized object type. |
| public int | Returns: >= -1; the allocation bytecode indexGets the bytecode index at which this uninitialized type was allocated. |
| public Type | getType()
Implements org. |
| public int | |
| public static Type | |
| public static Type | Returns: non-null; the corresponding typenon-null; the name of the class whose type
is desiredReturns the unique instance corresponding to the type of the class with the given name. |
| public static Type | Returns: non-null; the corresponding instancenon-null; the descriptorReturns the unique instance corresponding to the type with the
given descriptor, allowing |
| public boolean | |
| public boolean | Returns: whether this type is an array typeGets whether this type is an array type or is a known-null, and hence is compatible with array types. |
| public boolean | Returns: whether or not this is a category 1 typeReturns whether or not this is a category 1 type. |
| public boolean | Returns: whether or not this is a category 2 typeReturns whether or not this is a category 2 type. |
| public boolean | isConstant()
Implements org. |
| public boolean | Returns: whether this type is "intlike"Gets whether this type is "intlike." An intlike type is one which, when
placed on a stack or in a local, is automatically converted to an
|
| public boolean | |
| public boolean | Returns: whether this type is a normal reference typeGets whether this type is a normal reference type. |
| public boolean | Returns: whether this type is "uninitialized"Gets whether this type represents an uninitialized instance. |
| private static Type | |
| public String | toHuman()
Implements org. |
| public String |
| ANNOTATION | back to summary |
|---|---|
| public static final Type ANNOTATION
| |
| arrayType | back to summary |
|---|---|
| private Type arrayType
| |
| basicType | back to summary |
|---|---|
| private final int basicType basic type corresponding to this type; one of the
| |
| BOOLEAN | back to summary |
|---|---|
| public static final Type BOOLEAN
| |
| BOOLEAN_ARRAY | back to summary |
|---|---|
| public static final Type BOOLEAN_ARRAY
| |
| BOOLEAN_CLASS | back to summary |
|---|---|
| public static final Type BOOLEAN_CLASS
| |
| BT_ADDR | back to summary |
|---|---|
| public static final int BT_ADDR basic type constant for a return address | |
| BT_BOOLEAN | back to summary |
|---|---|
| public static final int BT_BOOLEAN basic type constant for | |
| BT_BYTE | back to summary |
|---|---|
| public static final int BT_BYTE basic type constant for | |
| BT_CHAR | back to summary |
|---|---|
| public static final int BT_CHAR basic type constant for | |
| BT_COUNT | back to summary |
|---|---|
| public static final int BT_COUNT count of basic type constants | |
| BT_DOUBLE | back to summary |
|---|---|
| public static final int BT_DOUBLE basic type constant for | |
| BT_FLOAT | back to summary |
|---|---|
| public static final int BT_FLOAT basic type constant for | |
| BT_INT | back to summary |
|---|---|
| public static final int BT_INT basic type constant for | |
| BT_LONG | back to summary |
|---|---|
| public static final int BT_LONG basic type constant for | |
| BT_OBJECT | back to summary |
|---|---|
| public static final int BT_OBJECT basic type constant for | |
| BT_SHORT | back to summary |
|---|---|
| public static final int BT_SHORT basic type constant for | |
| BT_VOID | back to summary |
|---|---|
| public static final int BT_VOID basic type constant for | |
| BYTE | back to summary |
|---|---|
| public static final Type BYTE
| |
| BYTE_ARRAY | back to summary |
|---|---|
| public static final Type BYTE_ARRAY
| |
| BYTE_CLASS | back to summary |
|---|---|
| public static final Type BYTE_CLASS
| |
| CHAR | back to summary |
|---|---|
| public static final Type CHAR
| |
| CHAR_ARRAY | back to summary |
|---|---|
| public static final Type CHAR_ARRAY
| |
| CHARACTER_CLASS | back to summary |
|---|---|
| public static final Type CHARACTER_CLASS
| |
| CLASS | back to summary |
|---|---|
| public static final Type CLASS
| |
| className | back to summary |
|---|---|
| private String className
| |
| CLONEABLE | back to summary |
|---|---|
| public static final Type CLONEABLE
| |
| componentType | back to summary |
|---|---|
| private Type componentType
| |
| descriptor | back to summary |
|---|---|
| private final String descriptor
| |
| DOUBLE | back to summary |
|---|---|
| public static final Type DOUBLE
| |
| DOUBLE_ARRAY | back to summary |
|---|---|
| public static final Type DOUBLE_ARRAY
| |
| DOUBLE_CLASS | back to summary |
|---|---|
| public static final Type DOUBLE_CLASS
| |
| FLOAT | back to summary |
|---|---|
| public static final Type FLOAT
| |
| FLOAT_ARRAY | back to summary |
|---|---|
| public static final Type FLOAT_ARRAY
| |
| FLOAT_CLASS | back to summary |
|---|---|
| public static final Type FLOAT_CLASS
| |
| initializedType | back to summary |
|---|---|
| private Type initializedType
| |
| INT | back to summary |
|---|---|
| public static final Type INT
| |
| INT_ARRAY | back to summary |
|---|---|
| public static final Type INT_ARRAY
| |
| INTEGER_CLASS | back to summary |
|---|---|
| public static final Type INTEGER_CLASS
| |
| internTable | back to summary |
|---|---|
| private static final HashMap<String, Type> internTable
| |
| KNOWN_NULL | back to summary |
|---|---|
| public static final Type KNOWN_NULL
| |
| LONG | back to summary |
|---|---|
| public static final Type LONG
| |
| LONG_ARRAY | back to summary |
|---|---|
| public static final Type LONG_ARRAY
| |
| LONG_CLASS | back to summary |
|---|---|
| public static final Type LONG_CLASS
| |
| newAt | back to summary |
|---|---|
| private final int newAt
| |
| OBJECT | back to summary |
|---|---|
| public static final Type OBJECT
| |
| OBJECT_ARRAY | back to summary |
|---|---|
| public static final Type OBJECT_ARRAY
| |
| RETURN_ADDRESS | back to summary |
|---|---|
| public static final Type RETURN_ADDRESS
| |
| SERIALIZABLE | back to summary |
|---|---|
| public static final Type SERIALIZABLE
| |
| SHORT | back to summary |
|---|---|
| public static final Type SHORT
| |
| SHORT_ARRAY | back to summary |
|---|---|
| public static final Type SHORT_ARRAY
| |
| SHORT_CLASS | back to summary |
|---|---|
| public static final Type SHORT_CLASS
| |
| STRING | back to summary |
|---|---|
| public static final Type STRING
| |
| THROWABLE | back to summary |
|---|---|
| public static final Type THROWABLE
| |
| VOID | back to summary |
|---|---|
| public static final Type VOID
| |
| VOID_CLASS | back to summary |
|---|---|
| public static final Type VOID_CLASS
| |
| Type | back to summary |
|---|---|
| private Type(String descriptor, int basicType, int newAt) Constructs an instance corresponding to an "uninitialized type." This is a private constructor; use one of the public static methods to get instances.
| |
| Type | back to summary |
|---|---|
| private Type(String descriptor, int basicType) Constructs an instance corresponding to an "initialized type." This is a private constructor; use one of the public static methods to get instances.
| |
| asUninitialized | back to summary |
|---|---|
| public Type asUninitialized(int newAt) Returns a new interned instance which is identical to this one, except it is indicated as uninitialized and allocated at the given bytecode index. This instance must be an initialized object type.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(Type other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| 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. | |
| getArrayType | back to summary |
|---|---|
| public Type getArrayType() Gets the type corresponding to an array of this type.
| |
| getBasicFrameType | back to summary |
|---|---|
| public int getBasicFrameType() Implements org. Doc from org. Gets the basic type corresponding to this instance's frame type. This
is equivalent to
| |
| getBasicType | back to summary |
|---|---|
| public int getBasicType() Implements org. Doc from org. Gets the basic type corresponding to this instance.
| |
| getCategory | back to summary |
|---|---|
| public int getCategory() Gets the category. Most instances are category 1.
| |
| getClassName | back to summary |
|---|---|
| public String getClassName() Gets the name of the class this type corresponds to, in internal form. This method is only valid if this instance is for a normal reference type (that is, a reference type and additionally not a return address).
| |
| getComponentType | back to summary |
|---|---|
| public Type getComponentType() Gets the component type of this type. This method is only valid on array types.
| |
| getDescriptor | back to summary |
|---|---|
| public String getDescriptor() Gets the descriptor.
| |
| getFrameType | back to summary |
|---|---|
| public Type getFrameType() Implements org. Doc from org. Gets the frame type corresponding to this type. This method returns
| |
| getInitializedType | back to summary |
|---|---|
| public Type getInitializedType() Gets the initialized type corresponding to this instance, but only if this instance is in fact an uninitialized object type.
| |
| getNewAt | back to summary |
|---|---|
| public int getNewAt() Gets the bytecode index at which this uninitialized type was
allocated. This returns
| |
| 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 Type intern(String descriptor) Returns the unique instance corresponding to the type with the
given descriptor. See vmspec-2 sec4.3.2 for details on the
field descriptor syntax. This method does not allow
| |
| internClassName | back to summary |
|---|---|
| public static Type internClassName(String name) Returns the unique instance corresponding to the type of the
class with the given name. Calling this method is equivalent to
calling
| |
| internReturnType | back to summary |
|---|---|
| public static Type internReturnType(String descriptor) Returns the unique instance corresponding to the type with the
given descriptor, allowing
| |
| isArray | back to summary |
|---|---|
| public boolean isArray() Gets whether this type is an array type. If this method returns
| |
| isArrayOrKnownNull | back to summary |
|---|---|
| public boolean isArrayOrKnownNull() Gets whether this type is an array type or is a known-null, and hence is compatible with array types.
| |
| isCategory1 | back to summary |
|---|---|
| public boolean isCategory1() Returns whether or not this is a category 1 type.
| |
| isCategory2 | back to summary |
|---|---|
| public boolean isCategory2() Returns whether or not this is a category 2 type.
| |
| isConstant | back to summary |
|---|---|
| public boolean isConstant() Implements org. Doc from org. Returns whether this instance represents a constant value.
| |
| isIntlike | back to summary |
|---|---|
| public boolean isIntlike() Gets whether this type is "intlike." An intlike type is one which, when
placed on a stack or in a local, is automatically converted to an
| |
| isPrimitive | back to summary |
|---|---|
| public boolean isPrimitive() Gets whether this type is a primitive type. All types are either primitive or reference types.
| |
| isReference | back to summary |
|---|---|
| public boolean isReference() Gets whether this type is a normal reference type. A normal
reference type is a reference type that is not a return
address. This method is just convenient shorthand for
| |
| isUninitialized | back to summary |
|---|---|
| public boolean isUninitialized() Gets whether this type represents an uninitialized instance. An
uninitialized instance is what one gets back from the
| |
| putIntern | back to summary |
|---|---|
| private static Type putIntern(Type type) Puts the given instance in the intern table if it's not already there. If a conflicting value is already in the table, then leave it. Return the interned value. | |
| 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. | |