Class Types

java.lang.Object
org.robovm.compiler.Types

public class Types
extends Object
Author:
niklas
  • Field Details

    • GATEWAY_FRAME

      public static final StructureType GATEWAY_FRAME
    • GATEWAY_FRAME_PTR

      public static final Type GATEWAY_FRAME_PTR
    • TRYCATCH_CONTEXT

      public static final StructureType TRYCATCH_CONTEXT
    • TRYCATCH_CONTEXT_PTR

      public static final Type TRYCATCH_CONTEXT_PTR
    • BC_TRYCATCH_CONTEXT

      public static final StructureType BC_TRYCATCH_CONTEXT
    • BC_TRYCATCH_CONTEXT_PTR

      public static final Type BC_TRYCATCH_CONTEXT_PTR
    • ENV_PTR

      public static final Type ENV_PTR
    • CLASS

      public static final StructureType CLASS
    • CLASS_PTR

      public static final Type CLASS_PTR
    • OBJECT

      public static final StructureType OBJECT
    • DATA_OBJECT

      public static final StructureType DATA_OBJECT
    • VITABLE

      public static final StructureType VITABLE
    • VITABLE_PTR

      public static final Type VITABLE_PTR
    • OBJECT_PTR

      public static final Type OBJECT_PTR
    • METHOD_PTR

      public static final Type METHOD_PTR
    • FIELD_PTR

      public static final Type FIELD_PTR
    • INFO_STRUCT_ALIAS

      public static final String INFO_STRUCT_ALIAS
      See Also:
      Constant Field Values
    • CLASS_TYPE_ALIAS

      public static final String CLASS_TYPE_ALIAS
      See Also:
      Constant Field Values
  • Constructor Details

    • Types

      public Types()
  • Method Details

    • getType

      public static Type getType​(String desc)
    • getLocalType

      public static Type getLocalType​(soot.Type sootType)
    • getType

      public static Type getType​(soot.Type sootType)
    • isUnsigned

      public static boolean isUnsigned​(soot.Type type)
    • getInternalName

      public static String getInternalName​(soot.Type t)
    • getInternalName

      public static String getInternalName​(soot.SootClass sc)
    • getInternalNameFromDescriptor

      public static String getInternalNameFromDescriptor​(String desc)
    • getDescriptor

      public static String getDescriptor​(Type t)
    • getDescriptor

      public static String getDescriptor​(soot.Type t)
    • getDescriptor

      public static String getDescriptor​(soot.SootField field)
    • getDescriptor

      public static String getDescriptor​(soot.SootMethod method)
    • getDescriptor

      public static String getDescriptor​(soot.SootMethodRef methodRef)
    • getDescriptor

      public static String getDescriptor​(List<soot.Type> paramTypes, soot.Type returnType)
    • getReturnTypeDescriptor

      public static String getReturnTypeDescriptor​(String methodDescriptor)
    • getParameterDescriptors

      public static List<String> getParameterDescriptors​(String methodDescriptor)
    • isEnum

      public static boolean isEnum​(soot.Type t)
    • isEnum

      public static boolean isEnum​(soot.SootClass sc)
    • isPrimitive

      public static boolean isPrimitive​(String descriptor)
    • isArray

      public static boolean isArray​(String descriptor)
    • 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

      public static boolean isPrimitiveComponentType​(String descriptor)
    • isPrimitiveBaseType

      public static boolean isPrimitiveBaseType​(String descriptor)
    • getBaseType

      public static String getBaseType​(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).
    • getFunctionType

      public static FunctionType getFunctionType​(soot.SootMethod method)
    • getFunctionType

      public static FunctionType getFunctionType​(soot.SootMethodRef methodRef)
    • getFunctionType

      public static FunctionType getFunctionType​(String methodDesc, boolean ztatic)
    • getNativeFunctionType

      public static FunctionType getNativeFunctionType​(String methodDesc, boolean ztatic)
    • isSubclass

      public static boolean isSubclass​(soot.SootClass sc, String className)
    • isInstanceOfClass

      public static boolean isInstanceOfClass​(soot.Type t, String className)
    • isInstanceOfClass

      public static boolean isInstanceOfClass​(soot.SootClass sc, String className)
    • sizeof

      public static Constant sizeof​(AggregateType type)
    • offsetof

      public static Constant offsetof​(AggregateType type, int... idx)
    • getClassType

      public static StructureType getClassType​(ModuleBuilder mb, OS os, Arch arch, soot.SootClass clazz)
    • getInstanceType

      public static StructureType getInstanceType​(OS os, Arch arch, soot.SootClass clazz)
    • getFieldAlignment

      public static int getFieldAlignment​(OS os, Arch arch, soot.SootField f)
    • getFieldSize

      public static int getFieldSize​(Arch arch, soot.SootField f)
    • getFieldPtr

      public static Value getFieldPtr​(Function f, Value base, Constant offset, Type fieldType)
    • getFields

      public static List<soot.SootField> getFields​(OS os, Arch arch, soot.SootClass clazz, boolean ztatic)
    • getClassFields

      public static List<soot.SootField> getClassFields​(OS os, Arch arch, soot.SootClass clazz)
    • getInstanceFields

      public static List<soot.SootField> getInstanceFields​(OS os, Arch arch, soot.SootClass clazz)