Package soot

Class MethodSubSignature


  • public class MethodSubSignature
    extends Object
    Allows one-time parsing of method subsignatures. Note that these method sub signatures are resolved, i.e. we resolve the complete types upon construction.
    Author:
    Marc Miltenberger
    • Field Detail

      • methodName

        public final String methodName
      • returnType

        public final Type returnType
      • parameterTypes

        public final List<Type> parameterTypes
    • Constructor Detail

      • MethodSubSignature

        public MethodSubSignature​(SootMethodRef r)
      • MethodSubSignature

        public MethodSubSignature​(NumberedString subsig)
      • MethodSubSignature

        public MethodSubSignature​(String methodName,
                                  Type returnType,
                                  List<Type> parameterTypes)
      • MethodSubSignature

        public MethodSubSignature​(Stmt callSite)
        Creates a new instance of the MethodSubSignature class based on a call site. The subsignature of the callee will be taken from the method referenced at the call site.
        Parameters:
        callSite - The call site
    • Method Detail

      • getMethodName

        public String getMethodName()
      • getReturnType

        public Type getReturnType()
      • getParameterTypes

        public List<Type> getParameterTypes()
      • getInClassUnsafe

        public SootMethod getInClassUnsafe​(SootClass c)
        Tries to find the exact method in a class. Returns null if cannot be found
        Parameters:
        c - the class
        Returns:
        the method (or null)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object