Package soot.dexpler

Class DexMethod


  • public class DexMethod
    extends Object
    DexMethod is a container for all methods that are declared in a class. It holds information about its name, the class it belongs to, its access flags, thrown exceptions, the return type and parameter types as well as the encoded method itself.
    • Field Detail

      • dexEntry

        protected final org.jf.dexlib2.iface.MultiDexContainer.DexEntry<? extends org.jf.dexlib2.iface.DexFile> dexEntry
      • declaringClass

        protected final SootClass declaringClass
    • Constructor Detail

      • DexMethod

        public DexMethod​(org.jf.dexlib2.iface.MultiDexContainer.DexEntry<? extends org.jf.dexlib2.iface.DexFile> dexFile,
                         SootClass declaringClass)
    • Method Detail

      • makeSootMethod

        public SootMethod makeSootMethod​(org.jf.dexlib2.iface.Method method)
        Retrieve the SootMethod equivalent of this method
        Returns:
        the SootMethod of this method
      • createMethodSource

        protected MethodSource createMethodSource​(org.jf.dexlib2.iface.Method method)
      • getParameterTypes

        protected List<Type> getParameterTypes​(org.jf.dexlib2.iface.Method method)
      • getThrownExceptions

        protected List<SootClass> getThrownExceptions​(org.jf.dexlib2.iface.Method method)