public interface SootMethodRef extends SootMethodInterface
| Modifier and Type | Method and Description |
|---|---|
SootClass |
declaringClass()
Deprecated.
|
String |
getSignature() |
NumberedString |
getSubSignature() |
default boolean |
isConstructor()
Gets whether this method reference points to a constructor
|
boolean |
isStatic() |
String |
name()
Deprecated.
|
Type |
parameterType(int i)
Deprecated.
|
List<Type> |
parameterTypes()
Deprecated.
|
SootMethod |
resolve()
Resolves this method call, i.e., finds the method to which this reference points.
|
Type |
returnType()
Deprecated.
|
SootMethod |
tryResolve()
Tries to resolve this method call, i.e., tries to finds the method to which this reference points.
|
getDeclaringClass, getName, getParameterType, getParameterTypes, getReturnType@Deprecated SootClass declaringClass()
SootMethodInterface.getDeclaringClass() instead@Deprecated String name()
SootMethodInterface.getName() instead@Deprecated List<Type> parameterTypes()
SootMethodInterface.getParameterTypes() instead@Deprecated Type returnType()
SootMethodInterface.getReturnType() insteadboolean isStatic()
isStatic in interface SootMethodInterfacedefault boolean isConstructor()
NumberedString getSubSignature()
String getSignature()
getSignature in interface SootMethodInterface@Deprecated Type parameterType(int i)
SootMethodInterface.getParameterType(int) insteadSootMethod resolve()
SootMethodRefImpl.ClassResolutionFailedException - (can be suppressed by Options.set_ignore_resolution_errors(boolean))SootMethod tryResolve()
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 resolve() creates fake methods that throw exceptions when a
target method does not exist and phantom references are allowed, this method returns null.null otherwiseCopyright © 2020 Soot OSS. All rights reserved.