Package org.robovm.compiler
Class Types
java.lang.Object
org.robovm.compiler.Types
public class Types extends Object
- Author:
- niklas
-
Field Summary
Fields Modifier and Type Field Description static StructureTypeBC_TRYCATCH_CONTEXTstatic TypeBC_TRYCATCH_CONTEXT_PTRstatic StructureTypeCLASSstatic TypeCLASS_PTRstatic StringCLASS_TYPE_ALIASstatic StructureTypeDATA_OBJECTstatic TypeENV_PTRstatic TypeFIELD_PTRstatic StructureTypeGATEWAY_FRAMEstatic TypeGATEWAY_FRAME_PTRstatic StringINFO_STRUCT_ALIASstatic TypeMETHOD_PTRstatic StructureTypeOBJECTstatic TypeOBJECT_PTRstatic StructureTypeTRYCATCH_CONTEXTstatic TypeTRYCATCH_CONTEXT_PTRstatic StructureTypeVITABLEstatic TypeVITABLE_PTR -
Constructor Summary
Constructors Constructor Description Types() -
Method Summary
Modifier and Type Method Description static StringgetBaseType(String descriptor)Returns the internal name of the base type for an array of references ([[Ljava/lang/String; => java/lang/String) or plain reference (Ljava/lang/String => java/lang/String).static List<soot.SootField>getClassFields(OS os, Arch arch, soot.SootClass clazz)static StructureTypegetClassType(ModuleBuilder mb, OS os, Arch arch, soot.SootClass clazz)static StringgetDescriptor(List<soot.Type> paramTypes, soot.Type returnType)static StringgetDescriptor(Type t)static StringgetDescriptor(soot.SootField field)static StringgetDescriptor(soot.SootMethod method)static StringgetDescriptor(soot.SootMethodRef methodRef)static StringgetDescriptor(soot.Type t)static intgetFieldAlignment(OS os, Arch arch, soot.SootField f)static ValuegetFieldPtr(Function f, Value base, Constant offset, Type fieldType)static List<soot.SootField>getFields(OS os, Arch arch, soot.SootClass clazz, boolean ztatic)static intgetFieldSize(Arch arch, soot.SootField f)static FunctionTypegetFunctionType(String methodDesc, boolean ztatic)static FunctionTypegetFunctionType(soot.SootMethod method)static FunctionTypegetFunctionType(soot.SootMethodRef methodRef)static List<soot.SootField>getInstanceFields(OS os, Arch arch, soot.SootClass clazz)static StructureTypegetInstanceType(OS os, Arch arch, soot.SootClass clazz)static StringgetInternalName(soot.SootClass sc)static StringgetInternalName(soot.Type t)static StringgetInternalNameFromDescriptor(String desc)static TypegetLocalType(soot.Type sootType)static FunctionTypegetNativeFunctionType(String methodDesc, boolean ztatic)static List<String>getParameterDescriptors(String methodDescriptor)static StringgetReturnTypeDescriptor(String methodDescriptor)static TypegetType(String desc)static TypegetType(soot.Type sootType)static booleanisArray(String descriptor)static booleanisEnum(soot.SootClass sc)static booleanisEnum(soot.Type t)static booleanisInstanceOfClass(soot.SootClass sc, String className)static booleanisInstanceOfClass(soot.Type t, String className)static booleanisNativeObject(soot.SootClass sc)static booleanisNativeObject(soot.Type t)static booleanisPrimitive(String descriptor)static booleanisPrimitiveBaseType(String descriptor)static booleanisPrimitiveComponentType(String descriptor)static booleanisStruct(soot.SootClass sc)static booleanisStruct(soot.Type t)static booleanisSubclass(soot.SootClass sc, String className)static booleanisUnsigned(soot.Type type)static Constantoffsetof(AggregateType type, int... idx)static Constantsizeof(AggregateType type)
-
Field Details
-
GATEWAY_FRAME
-
GATEWAY_FRAME_PTR
-
TRYCATCH_CONTEXT
-
TRYCATCH_CONTEXT_PTR
-
BC_TRYCATCH_CONTEXT
-
BC_TRYCATCH_CONTEXT_PTR
-
ENV_PTR
-
CLASS
-
CLASS_PTR
-
OBJECT
-
DATA_OBJECT
-
VITABLE
-
VITABLE_PTR
-
OBJECT_PTR
-
METHOD_PTR
-
FIELD_PTR
-
INFO_STRUCT_ALIAS
- See Also:
- Constant Field Values
-
CLASS_TYPE_ALIAS
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Types
public Types()
-
-
Method Details
-
getType
-
getLocalType
-
getType
-
isUnsigned
public static boolean isUnsigned(soot.Type type) -
getInternalName
-
getInternalName
-
getInternalNameFromDescriptor
-
getDescriptor
-
getDescriptor
-
getDescriptor
-
getDescriptor
-
getDescriptor
-
getDescriptor
-
getReturnTypeDescriptor
-
getParameterDescriptors
-
isEnum
public static boolean isEnum(soot.Type t) -
isEnum
public static boolean isEnum(soot.SootClass sc) -
isPrimitive
-
isArray
-
isNativeObject
public static boolean isNativeObject(soot.Type t) -
isNativeObject
public static boolean isNativeObject(soot.SootClass sc) -
isStruct
public static boolean isStruct(soot.Type t) -
isStruct
public static boolean isStruct(soot.SootClass sc) -
isPrimitiveComponentType
-
isPrimitiveBaseType
-
getBaseType
Returns the internal name of the base type for an array of references ([[Ljava/lang/String; => java/lang/String) or plain reference (Ljava/lang/String => java/lang/String). -
getFunctionType
-
getFunctionType
-
getFunctionType
-
getNativeFunctionType
-
isSubclass
-
isInstanceOfClass
-
isInstanceOfClass
-
sizeof
-
offsetof
-
getClassType
-
getInstanceType
-
getFieldAlignment
-
getFieldSize
-
getFieldPtr
-
getFields
-
getClassFields
-
getInstanceFields
-