public class Type extends Object
限定符和类型 | 字段和说明 |
---|---|
static int |
ARRAY
The sort of array reference types.
|
static int |
BOOLEAN
The sort of the boolean type.
|
static Type |
BOOLEAN_TYPE
The boolean type.
|
static int |
BYTE
The sort of the byte type.
|
static Type |
BYTE_TYPE
The byte type.
|
static int |
CHAR
The sort of the char type.
|
static Type |
CHAR_TYPE
The char type.
|
static int |
DOUBLE
The sort of the double type.
|
static Type |
DOUBLE_TYPE
The double type.
|
static int |
FLOAT
The sort of the float type.
|
static Type |
FLOAT_TYPE
The float type.
|
static int |
INT
The sort of the int type.
|
static Type |
INT_TYPE
The int type.
|
static int |
LONG
The sort of the long type.
|
static Type |
LONG_TYPE
The long type.
|
static int |
OBJECT
The sort of object reference type.
|
static int |
SHORT
The sort of the short type.
|
static Type |
SHORT_TYPE
The short type.
|
static int |
VOID
The sort of the void type.
|
static Type |
VOID_TYPE
The void type.
|
限定符和类型 | 方法和说明 |
---|---|
static int |
getArgumentsAndReturnSizes(String desc) |
String |
getInternalName()
Returns the internal name of the class corresponding to this object or array type.
|
int |
getSort()
Returns the sort of this Java type.
|
static Type |
getType(String typeDescriptor)
Returns the Java type corresponding to the given type descriptor.
|
public static final int VOID
public static final int BOOLEAN
public static final int CHAR
public static final int BYTE
public static final int SHORT
public static final int INT
public static final int FLOAT
public static final int LONG
public static final int DOUBLE
public static final int ARRAY
public static final int OBJECT
public static final Type VOID_TYPE
public static final Type BOOLEAN_TYPE
public static final Type CHAR_TYPE
public static final Type BYTE_TYPE
public static final Type SHORT_TYPE
public static final Type INT_TYPE
public static final Type FLOAT_TYPE
public static final Type LONG_TYPE
public static final Type DOUBLE_TYPE
public static Type getType(String typeDescriptor)
typeDescriptor
- a type descriptor.public static int getArgumentsAndReturnSizes(String desc)
public int getSort()
public String getInternalName()
Copyright © 2012–2016 Alibaba Group. All rights reserved.