Package soot.dexpler
Class Util
- java.lang.Object
-
- soot.dexpler.Util
-
public class Util extends Object
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddExceptionAfterUnit(Body b, String exceptionType, Unit u, String m)Insert a runtime exception before unit u of body b.static <T> T[]concat(T[] first, T[] second)Concatenate two arrays.static StringdottedClassName(String typeDescriptor)Return the dotted class name of a type descriptor, i.e.static voidemptyBody(Body jBody)Remove all statements except from IdentityStatements for parameters.static TypegetType(String type)static booleanisByteCodeClassName(String className)Check if passed class name is a byte code classname.static booleanisFloatLike(Type t)Returns if the type is a floating point type.static List<String>splitParameters(String parameters)
-
-
-
Method Detail
-
dottedClassName
public static String dottedClassName(String typeDescriptor)
Return the dotted class name of a type descriptor, i.e. change Ljava/lang/Object; to java.lang.Object.- Returns:
- the dotted name.
-
isByteCodeClassName
public static boolean isByteCodeClassName(String className)
Check if passed class name is a byte code classname.- Parameters:
className- the classname to check.
-
concat
public static <T> T[] concat(T[] first, T[] second)Concatenate two arrays.- Parameters:
first- first arraysecond- second array.
-
isFloatLike
public static boolean isFloatLike(Type t)
Returns if the type is a floating point type.- Parameters:
t- the type to test
-
emptyBody
public static void emptyBody(Body jBody)
Remove all statements except from IdentityStatements for parameters. Return default value (null or zero or nothing depending on the return type).- Parameters:
jBody-
-
addExceptionAfterUnit
public static void addExceptionAfterUnit(Body b, String exceptionType, Unit u, String m)
Insert a runtime exception before unit u of body b. Useful to analyze broken code (which make reference to inexisting class for instance) exceptionType: e.g., "java.lang.RuntimeException"
-
-