public final class Type
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
ARRAY |
(package private) static int |
BOOLEAN |
(package private) static Type |
BOOLEAN_TYPE |
(package private) static int |
BYTE |
(package private) static Type |
BYTE_TYPE |
(package private) static int |
CHAR |
(package private) static Type |
CHAR_TYPE |
(package private) static int |
DOUBLE |
(package private) static Type |
DOUBLE_TYPE |
(package private) static int |
FLOAT |
(package private) static Type |
FLOAT_TYPE |
(package private) static int |
INT |
(package private) static Type |
INT_TYPE |
(package private) static int |
INTERNAL |
(package private) static int |
LONG |
(package private) static Type |
LONG_TYPE |
(package private) static int |
METHOD |
(package private) static int |
OBJECT |
(package private) static int |
SHORT |
(package private) static Type |
SHORT_TYPE |
(package private) int |
sort |
(package private) static Type |
TYPE_CLASS |
(package private) static Type |
TYPE_JSON_READER |
(package private) static Type |
TYPE_JSON_WRITER |
(package private) static Type |
TYPE_LIST |
(package private) static Type |
TYPE_OBJECT |
(package private) static Type |
TYPE_STRING |
(package private) static Type |
TYPE_SUPPLIER |
(package private) static Type |
TYPE_TYPE |
(package private) static Type[] |
TYPES_0 |
(package private) static Type[] |
TYPES_1 |
(package private) static Type[] |
TYPES_2 |
(package private) static Type[] |
TYPES_3 |
(package private) static Type[] |
TYPES_4 |
(package private) int |
valueBegin |
(package private) java.lang.String |
valueBuffer |
(package private) int |
valueEnd |
(package private) static int |
VOID |
(package private) static Type |
VOID_TYPE |
| Modifier | Constructor and Description |
|---|---|
private |
Type(int sort,
java.lang.String valueBuffer,
int valueBegin,
int valueEnd) |
| Modifier and Type | Method and Description |
|---|---|
static int |
getArgumentsAndReturnSizes(java.lang.String methodDescriptor)
Computes the size of the arguments and of the return value of a method.
|
(package private) static Type[] |
getArgumentTypes(java.lang.String methodDescriptor)
Returns the
Type values corresponding to the argument types of the given method
descriptor. |
java.lang.String |
getClassName() |
java.lang.String |
getDescriptor()
Returns the descriptor corresponding to this type.
|
int |
getDimensions() |
(package private) static Type |
getTypeInternal(java.lang.String descriptorBuffer,
int descriptorBegin,
int descriptorEnd)
Returns the
Type corresponding to the given field or method descriptor. |
static final int VOID
static final int BOOLEAN
static final int CHAR
static final int BYTE
static final int SHORT
static final int INT
static final int FLOAT
static final int LONG
static final int DOUBLE
static final int ARRAY
static final int OBJECT
static final int METHOD
static final int INTERNAL
static final Type VOID_TYPE
static final Type BOOLEAN_TYPE
static final Type CHAR_TYPE
static final Type BYTE_TYPE
static final Type SHORT_TYPE
static final Type INT_TYPE
static final Type FLOAT_TYPE
static final Type LONG_TYPE
static final Type DOUBLE_TYPE
static final Type TYPE_CLASS
static final Type TYPE_TYPE
static final Type TYPE_OBJECT
static final Type TYPE_STRING
static final Type TYPE_LIST
static final Type TYPE_JSON_READER
static final Type TYPE_JSON_WRITER
static final Type TYPE_SUPPLIER
static final Type[] TYPES_0
static final Type[] TYPES_1
static final Type[] TYPES_2
static final Type[] TYPES_3
static final Type[] TYPES_4
final int sort
final java.lang.String valueBuffer
final int valueBegin
final int valueEnd
private Type(int sort,
java.lang.String valueBuffer,
int valueBegin,
int valueEnd)
static Type[] getArgumentTypes(java.lang.String methodDescriptor)
Type values corresponding to the argument types of the given method
descriptor.methodDescriptor - a method descriptor.Type values corresponding to the argument types of the given method
descriptor.static Type getTypeInternal(java.lang.String descriptorBuffer, int descriptorBegin, int descriptorEnd)
Type corresponding to the given field or method descriptor.descriptorBuffer - a buffer containing the field or method descriptor.descriptorBegin - the beginning index, inclusive, of the field or method descriptor in
descriptorBuffer.descriptorEnd - the end index, exclusive, of the field or method descriptor in
descriptorBuffer.Type corresponding to the given type descriptor.public java.lang.String getDescriptor()
public static int getArgumentsAndReturnSizes(java.lang.String methodDescriptor)
methodDescriptor - a method descriptor.(argumentsSize << 2) | returnSize (argumentsSize is therefore equal to i >> 2, and returnSize to i & 0x03).public java.lang.String getClassName()
public int getDimensions()