Package soot
Class MethodSubSignature
- java.lang.Object
-
- soot.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 Summary
Fields Modifier and Type Field Description StringmethodNameNumberedStringnumberedSubSigList<Type>parameterTypesTypereturnType
-
Constructor Summary
Constructors Constructor Description MethodSubSignature(String methodName, Type returnType, List<Type> parameterTypes)MethodSubSignature(Stmt callSite)Creates a new instance of theMethodSubSignatureclass based on a call site.MethodSubSignature(SootMethodRef r)MethodSubSignature(NumberedString subsig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)SootMethodgetInClassUnsafe(SootClass c)Tries to find the exact method in a class.StringgetMethodName()NumberedStringgetNumberedSubSig()List<Type>getParameterTypes()TypegetReturnType()inthashCode()StringtoString()
-
-
-
Field Detail
-
methodName
public final String methodName
-
returnType
public final Type returnType
-
numberedSubSig
public final NumberedString numberedSubSig
-
-
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 theMethodSubSignatureclass 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()
-
getNumberedSubSig
public NumberedString getNumberedSubSig()
-
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)
-
-