Package com.alibaba.fastjson.asm
Class Type
- java.lang.Object
-
- com.alibaba.fastjson.asm.Type
-
public class Type extends Object
A Java type. This class can be used to make it easier to manipulate type and method descriptors.- Author:
- Eric Bruneton, Chris Nokleberg
-
-
Field Summary
Fields Modifier and Type Field Description static TypeBOOLEAN_TYPEThe boolean type.static TypeBYTE_TYPEThe byte type.static TypeCHAR_TYPEThe char type.static TypeDOUBLE_TYPEThe double type.static TypeFLOAT_TYPEThe float type.static TypeINT_TYPEThe int type.static TypeLONG_TYPEThe long type.static TypeSHORT_TYPEThe short type.static TypeVOID_TYPEThe void type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intgetArgumentsAndReturnSizes(String desc)StringgetInternalName()static TypegetType(String typeDescriptor)Returns the Java type corresponding to the given type descriptor.
-
-
-
Field Detail
-
VOID_TYPE
public static final Type VOID_TYPE
The void type.
-
BOOLEAN_TYPE
public static final Type BOOLEAN_TYPE
The boolean type.
-
CHAR_TYPE
public static final Type CHAR_TYPE
The char type.
-
BYTE_TYPE
public static final Type BYTE_TYPE
The byte type.
-
SHORT_TYPE
public static final Type SHORT_TYPE
The short type.
-
INT_TYPE
public static final Type INT_TYPE
The int type.
-
FLOAT_TYPE
public static final Type FLOAT_TYPE
The float type.
-
LONG_TYPE
public static final Type LONG_TYPE
The long type.
-
DOUBLE_TYPE
public static final Type DOUBLE_TYPE
The double type.
-
-
Method Detail
-
getType
public static Type getType(String typeDescriptor)
Returns the Java type corresponding to the given type descriptor.- Parameters:
typeDescriptor- a type descriptor.- Returns:
- the Java type corresponding to the given type descriptor.
-
getArgumentsAndReturnSizes
public static int getArgumentsAndReturnSizes(String desc)
-
getInternalName
public String getInternalName()
-
-