Package soot.toDex
Class SootToDexUtils
- java.lang.Object
-
- soot.toDex.SootToDexUtils
-
public class SootToDexUtils extends Object
Utility class for the conversion from soot to dex.
-
-
Constructor Summary
Constructors Constructor Description SootToDexUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanfitsSigned16(long literal)static booleanfitsSigned32(long literal)static booleanfitsSigned4(long literal)static booleanfitsSigned8(long literal)static StringgetArrayTypeDescriptor(ArrayType type)static intgetDexAccessFlags(SootMethod m)static StringgetDexClassName(String dottedClassName)static StringgetDexTypeDescriptor(Type sootType)static intgetDexWords(List<Type> sootTypes)static intgetDexWords(Type sootType)static intgetOutWordCount(Collection<Unit> units)static intgetRealRegCount(List<Register> regs)static booleanisNormalMove(org.jf.dexlib2.Opcode opc)static booleanisObject(String typeDescriptor)static booleanisObject(Type sootType)static booleanisWide(String typeDescriptor)static booleanisWide(Type sootType)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 '<'.
-
-
-
Method Detail
-
getDexAccessFlags
public static int getDexAccessFlags(SootMethod m)
-
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)
-
getDexWords
public static int getDexWords(Type sootType)
-
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:
-
-