public class SootMethodRefImpl extends Object implements SootMethodRef
| Modifier and Type | Class and Description |
|---|---|
class |
SootMethodRefImpl.ClassResolutionFailedException |
| Constructor and Description |
|---|
SootMethodRefImpl(SootClass declaringClass,
String name,
List<Type> parameterTypes,
Type returnType,
boolean isStatic)
Constructor.
|
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 SootMethodInterfacepublic NumberedString getSubSignature()
getSubSignature in interface SootMethodRefpublic String getSignature()
getSignature in interface SootMethodInterfacepublic 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 © 2024 Soot OSS. All rights reserved.