Package com.ibm.wala.ipa.summaries
Class SummarizedMethod
- java.lang.Object
-
- com.ibm.wala.classLoader.SyntheticMethod
-
- com.ibm.wala.ipa.summaries.SummarizedMethod
-
- All Implemented Interfaces:
IMember,IMethod,ContextItem,IClassHierarchyDweller
- Direct Known Subclasses:
SummarizedMethodWithNames
public class SummarizedMethod extends SyntheticMethod
ASyntheticMethodrepresenting the semantics encoded in aMethodSummary
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.wala.ipa.callgraph.ContextItem
ContextItem.Value<T>
-
Nested classes/interfaces inherited from interface com.ibm.wala.classLoader.IMethod
IMethod.SourcePosition
-
-
Field Summary
-
Fields inherited from class com.ibm.wala.classLoader.SyntheticMethod
declaringClass, NO_STATEMENTS, resolvedMethod
-
-
Constructor Summary
Constructors Constructor Description SummarizedMethod(MethodReference ref, MethodSummary summary, IClass declaringClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumberOfParameters()Method getNumberOfParameters.TypeReferencegetParameterType(int i)By convention, for a non-static method, getParameterType(0) is the this pointerStringgetPoison()bytegetPoisonLevel()SSAInstruction[]getStatements(SSAOptions options)booleanhasPoison()booleanisAbstract()Is this method abstract?booleanisNative()Is this method native?booleanisStatic()Is this member static?IRmakeIR(Context context, SSAOptions options)Most subclasses should override this.-
Methods inherited from class com.ibm.wala.classLoader.SyntheticMethod
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
-
-
-
-
Constructor Detail
-
SummarizedMethod
public SummarizedMethod(MethodReference ref, MethodSummary summary, IClass declaringClass) throws NullPointerException
- Throws:
NullPointerException
-
-
Method Detail
-
isNative
public boolean isNative()
Description copied from interface:IMethodIs this method native?- Specified by:
isNativein interfaceIMethod- Overrides:
isNativein classSyntheticMethod- See Also:
IMethod.isNative()
-
isAbstract
public boolean isAbstract()
Description copied from interface:IMethodIs this method abstract?- Specified by:
isAbstractin interfaceIMethod- Overrides:
isAbstractin classSyntheticMethod- See Also:
IMethod.isAbstract()
-
getPoison
public String getPoison()
- Overrides:
getPoisonin classSyntheticMethod
-
getPoisonLevel
public byte getPoisonLevel()
- Overrides:
getPoisonLevelin classSyntheticMethod
-
hasPoison
public boolean hasPoison()
- Overrides:
hasPoisonin classSyntheticMethod
-
getStatements
public SSAInstruction[] getStatements(SSAOptions options)
- Overrides:
getStatementsin classSyntheticMethod
-
makeIR
public IR makeIR(Context context, SSAOptions options)
Description copied from class:SyntheticMethodMost subclasses should override this.- Overrides:
makeIRin classSyntheticMethod- Parameters:
context- TODOoptions- options governing IR conversion
-
getNumberOfParameters
public int getNumberOfParameters()
Description copied from interface:IMethodMethod getNumberOfParameters. This result includes the "this" pointer if applicable- Specified by:
getNumberOfParametersin interfaceIMethod- Overrides:
getNumberOfParametersin classSyntheticMethod- See Also:
IMethod.getNumberOfParameters()
-
isStatic
public boolean isStatic()
Description copied from interface:IMemberIs this member static?- Specified by:
isStaticin interfaceIMember- Overrides:
isStaticin classSyntheticMethod- See Also:
IMember.isStatic()
-
getParameterType
public TypeReference getParameterType(int i)
Description copied from interface:IMethodBy convention, for a non-static method, getParameterType(0) is the this pointer- Specified by:
getParameterTypein interfaceIMethod- Overrides:
getParameterTypein classSyntheticMethod
-
-