Package soot.dexpler

Class Util


  • public class Util
    extends Object
    • Constructor Detail

      • Util

        public Util()
    • 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.
      • getType

        public static Type getType​(String type)
      • 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 array
        second - 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"
      • splitParameters

        public static List<String> splitParameters​(String parameters)