public class SootMethodRefImpl extends Object implements SootMethodRef
| Modifier and Type | Class and Description |
|---|---|
class |
SootMethodRefImpl.ClassResolutionFailedException |
| Modifier and Type | Field and Description |
|---|---|
protected List<Type> |
parameterTypes |
| Constructor and Description |
|---|
SootMethodRefImpl(SootClass declaringClass,
String name,
List<Type> parameterTypes,
Type returnType,
boolean isStatic)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SootClass |
declaringClass()
Use
SootMethodInterface.getDeclaringClass() instead |
boolean |
equals(Object obj) |
SootClass |
getDeclaringClass() |
String |
getName() |
Type |
getParameterType(int i) |
List<Type> |
getParameterTypes() |
Type |
getReturnType() |
String |
getSignature() |
NumberedString |
getSubSignature() |
int |
hashCode() |
boolean |
isStatic() |
String |
name()
Use
SootMethodInterface.getName() instead |
Type |
parameterType(int i)
Use
SootMethodInterface.getParameterType(int) instead |
List<Type> |
parameterTypes()
Use
SootMethodInterface.getParameterTypes() instead |
SootMethod |
resolve()
Resolves this method call, i.e., finds the method to which this reference points.
|
Type |
returnType()
Use
SootMethodInterface.getReturnType() instead |
String |
toString() |
SootMethod |
tryResolve()
Tries to resolve this method call, i.e., tries to finds the method to which this reference points.
|
protected SootMethod |
tryResolve(StringBuilder trace) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisConstructorpublic SootMethodRefImpl(SootClass declaringClass, String name, List<Type> parameterTypes, Type returnType, boolean isStatic)
declaringClass - the declaring class. Must not be nullname - the method name. Must not be nullparameterTypes - the types of parameters. May be nullreturnType - the type of return value. Must not be nullisStatic - the static modifier valueIllegalArgumentException - is thrown when declaringClass, or name, or returnType is nullpublic SootClass declaringClass()
SootMethodRefSootMethodInterface.getDeclaringClass() insteaddeclaringClass in interface SootMethodRefpublic SootClass getDeclaringClass()
getDeclaringClass in interface SootMethodInterfaceSootMethod/SootMethodRefpublic String name()
SootMethodRefSootMethodInterface.getName() insteadname in interface SootMethodRefpublic String getName()
getName in interface SootMethodInterfacepublic List<Type> parameterTypes()
SootMethodRefSootMethodInterface.getParameterTypes() insteadparameterTypes in interface SootMethodRefpublic List<Type> getParameterTypes()
getParameterTypes in interface SootMethodInterfacepublic Type returnType()
SootMethodRefSootMethodInterface.getReturnType() insteadreturnType in interface SootMethodRefpublic Type getReturnType()
getReturnType in interface SootMethodInterfacepublic boolean isStatic()
isStatic in interface SootMethodInterfaceisStatic in interface SootMethodRefpublic NumberedString getSubSignature()
getSubSignature in interface SootMethodRefpublic String getSignature()
getSignature in interface SootMethodInterfacegetSignature in interface SootMethodRefpublic Type parameterType(int i)
SootMethodRefSootMethodInterface.getParameterType(int) insteadparameterType in interface SootMethodRefpublic Type getParameterType(int i)
getParameterType in interface SootMethodInterfacepublic SootMethod resolve()
SootMethodRefresolve in interface SootMethodRefpublic SootMethod tryResolve()
SootMethodRefSootMethodRef.resolve() in the following ways:
(1) This method does not fail when the target method does not exist and phantom references are not allowed. In that
case, it returns null. (2) While SootMethodRef.resolve() creates fake methods that throw exceptions when a
target method does not exist and phantom references are allowed, this method returns null.tryResolve in interface SootMethodRefnull otherwiseprotected SootMethod tryResolve(StringBuilder trace)
Copyright © 2020 Soot OSS. All rights reserved.