Package soot.toDex

Class SootToDexUtils


  • public class SootToDexUtils
    extends Object
    Utility class for the conversion from soot to dex.
    • Constructor Detail

      • SootToDexUtils

        public SootToDexUtils()
    • Method Detail

      • getDexTypeDescriptor

        public static String getDexTypeDescriptor​(Type sootType)
      • getDexClassName

        public static String getDexClassName​(String dottedClassName)
      • getDexAccessFlags

        public static int getDexAccessFlags​(SootMethod m)
      • getArrayTypeDescriptor

        public static String getArrayTypeDescriptor​(ArrayType type)
      • isObject

        public static boolean isObject​(String typeDescriptor)
      • isObject

        public static boolean isObject​(Type sootType)
      • isWide

        public static boolean isWide​(String typeDescriptor)
      • isWide

        public static boolean isWide​(Type sootType)
      • getRealRegCount

        public static int getRealRegCount​(List<Register> regs)
      • getDexWords

        public static int getDexWords​(Type sootType)
      • getDexWords

        public static int getDexWords​(List<Type> sootTypes)
      • getOutWordCount

        public static int getOutWordCount​(Collection<Unit> units)
      • fitsSigned4

        public static boolean fitsSigned4​(long literal)
      • fitsSigned8

        public static boolean fitsSigned8​(long literal)
      • fitsSigned16

        public static boolean fitsSigned16​(long literal)
      • fitsSigned32

        public static boolean fitsSigned32​(long literal)
      • isNormalMove

        public static boolean isNormalMove​(org.jf.dexlib2.Opcode opc)
      • splitSignature

        public static List<String> splitSignature​(String sig)
        Split the signature string using the same algorithm as in method 'Annotation makeSignature(CstString signature)' in dx (dx/src/com/android/dx/dex/file/AnnotationUtils.java) Rules are: "" - scan to ';' or '<'. Consume ';' but not '<'. - scan to 'L' without consuming it. ""
        Parameters:
        sig -
        Returns: