public class SummarizedMethod extends SyntheticMethod
SyntheticMethod
representing the semantics encoded in a MethodSummary
IMethod.SourcePosition
ContextItem.Value<T>
declaringClass, NO_STATEMENTS, resolvedMethod
Constructor and Description |
---|
SummarizedMethod(MethodReference ref,
MethodSummary summary,
IClass declaringClass) |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfParameters()
Method getNumberOfParameters.
|
TypeReference |
getParameterType(int i)
By convention, for a non-static method, getParameterType(0) is the this pointer
|
String |
getPoison() |
byte |
getPoisonLevel() |
SSAInstruction[] |
getStatements(SSAOptions options) |
boolean |
hasPoison() |
boolean |
isAbstract()
Is this method abstract?
|
boolean |
isNative()
Is this method native?
|
boolean |
isStatic()
Is this member static?
|
IR |
makeIR(Context context,
SSAOptions options)
Most subclasses should override this.
|
equals, getAnnotations, getBytecodeStream, getClassHierarchy, getDeclaredExceptions, getDeclaringClass, getDescriptor, getLineNumber, getLocalVariableName, getMaxLocals, getMaxStackHeight, getName, getParameterSourcePosition, getReference, getReturnType, getSelector, getSignature, getSourcePosition, getStatements, hasExceptionHandler, hashCode, hasLocalVariableTable, isBridge, isClinit, isFactoryMethod, isFinal, isInit, isPrivate, isProtected, isPublic, isSynchronized, isSynthetic, makeControlFlowGraph, toString
public SummarizedMethod(MethodReference ref, MethodSummary summary, IClass declaringClass) throws NullPointerException
NullPointerException
public boolean isNative()
IMethod
isNative
in interface IMethod
isNative
in class SyntheticMethod
IMethod.isNative()
public boolean isAbstract()
IMethod
isAbstract
in interface IMethod
isAbstract
in class SyntheticMethod
IMethod.isAbstract()
public String getPoison()
getPoison
in class SyntheticMethod
public byte getPoisonLevel()
getPoisonLevel
in class SyntheticMethod
public boolean hasPoison()
hasPoison
in class SyntheticMethod
public SSAInstruction[] getStatements(SSAOptions options)
getStatements
in class SyntheticMethod
public IR makeIR(Context context, SSAOptions options)
SyntheticMethod
makeIR
in class SyntheticMethod
context
- TODOoptions
- options governing IR conversionpublic int getNumberOfParameters()
IMethod
getNumberOfParameters
in interface IMethod
getNumberOfParameters
in class SyntheticMethod
IMethod.getNumberOfParameters()
public boolean isStatic()
IMember
isStatic
in interface IMember
isStatic
in class SyntheticMethod
IMember.isStatic()
public TypeReference getParameterType(int i)
IMethod
getParameterType
in interface IMethod
getParameterType
in class SyntheticMethod