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:
JavaScriptSummarizedFunction
,SummarizedMethodWithNames
A
SyntheticMethod
representing the semantics encoded in a MethodSummary
-
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
ConstructorDescriptionSummarizedMethod
(MethodReference ref, MethodSummary summary, IClass declaringClass) -
Method Summary
Modifier and TypeMethodDescriptiongetLocalVariableName
(int bcIndex, int localNumber) int
Method getNumberOfParameters.getParameterType
(int i) By convention, for a non-static method, getParameterType(0) is the this pointerbyte
getStatements
(SSAOptions options) boolean
boolean
Is this method abstract?boolean
isNative()
Is this method native?boolean
isStatic()
Is this member static?makeIR
(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, getMaxLocals, getMaxStackHeight, getName, getParameterSourcePosition, getReference, getReturnType, getSelector, getSignature, getSourcePosition, getStatements, hasExceptionHandler, hashCode, hasLocalVariableTable, isAnnotation, isBridge, isClinit, isEnum, isFactoryMethod, isFinal, isInit, isModule, isPrivate, isProtected, isPublic, isSynchronized, isSynthetic, isWalaSynthetic, makeControlFlowGraph, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.ibm.wala.classLoader.IMethod
getNumberOfDefaultParameters
-
Constructor Details
-
SummarizedMethod
public SummarizedMethod(MethodReference ref, MethodSummary summary, IClass declaringClass) throws NullPointerException - Throws:
NullPointerException
-
-
Method Details
-
isNative
public boolean isNative()Description copied from interface:IMethod
Is this method native?- Specified by:
isNative
in interfaceIMethod
- Overrides:
isNative
in classSyntheticMethod
- See Also:
-
isAbstract
public boolean isAbstract()Description copied from interface:IMethod
Is this method abstract?- Specified by:
isAbstract
in interfaceIMethod
- Overrides:
isAbstract
in classSyntheticMethod
- See Also:
-
getPoison
- Overrides:
getPoison
in classSyntheticMethod
-
getPoisonLevel
public byte getPoisonLevel()- Overrides:
getPoisonLevel
in classSyntheticMethod
-
hasPoison
public boolean hasPoison()- Overrides:
hasPoison
in classSyntheticMethod
-
getStatements
- Overrides:
getStatements
in classSyntheticMethod
-
makeIR
Description copied from class:SyntheticMethod
Most subclasses should override this.- Overrides:
makeIR
in classSyntheticMethod
- Parameters:
context
- TODOoptions
- options governing IR conversion
-
getNumberOfParameters
public int getNumberOfParameters()Description copied from interface:IMethod
Method getNumberOfParameters. This result includes the "this" pointer if applicable- Specified by:
getNumberOfParameters
in interfaceIMethod
- Overrides:
getNumberOfParameters
in classSyntheticMethod
- See Also:
-
isStatic
public boolean isStatic()Description copied from interface:IMember
Is this member static?- Specified by:
isStatic
in interfaceIMember
- Overrides:
isStatic
in classSyntheticMethod
- See Also:
-
getParameterType
Description copied from interface:IMethod
By convention, for a non-static method, getParameterType(0) is the this pointer- Specified by:
getParameterType
in interfaceIMethod
- Overrides:
getParameterType
in classSyntheticMethod
- See Also:
-
getLocalVariableName
- Specified by:
getLocalVariableName
in interfaceIMethod
- Overrides:
getLocalVariableName
in classSyntheticMethod
- Returns:
- the (source code) name of the local variable of a given number at the specified program counter, or null if the information is not available.
-