Class CAstAbstractModuleLoader.DynamicMethodObject
java.lang.Object
com.ibm.wala.cast.loader.AstMethod
com.ibm.wala.cast.loader.CAstAbstractModuleLoader.DynamicMethodObject
- All Implemented Interfaces:
AstMethod.Retranslatable
,IMember
,IMethod
,ContextItem
,IClassHierarchyDweller
- Enclosing class:
CAstAbstractModuleLoader
public class CAstAbstractModuleLoader.DynamicMethodObject
extends AstMethod
implements AstMethod.Retranslatable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ibm.wala.cast.loader.AstMethod
AstMethod.DebuggingInformation, AstMethod.LexicalInformation, AstMethod.LexicalParent, AstMethod.Retranslatable
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
-
Constructor Summary
ConstructorDescriptionDynamicMethodObject
(IClass cls, Collection<CAstQualifier> qualifiers, AbstractCFG<?, ?> cfg, SymbolTable symtab, boolean hasCatchBlock, Map<IBasicBlock<SSAInstruction>, TypeReference[]> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo) -
Method Summary
Modifier and TypeMethodDescriptiongetLocalVariableName
(int bcIndex, int localNumber) int
int
getParameterType
(int i) By convention, for a non-static method, getParameterType(0) is the this pointerboolean
void
retranslate
(AstTranslator xlator) toString()
Methods inherited from class com.ibm.wala.cast.loader.AstMethod
catchTypes, cfg, cloneLexicalInfo, debugInfo, getAnnotations, getControlFlowGraph, getDeclaringClass, getDescriptor, getLineNumber, getName, getNumberOfParameters, getParameterPosition, getParameterSourcePosition, getReference, getReturnType, getSelector, getSignature, getSourcePosition, getSourcePosition, hasExceptionHandler, hasMonitorOp, isAbstract, isAnnotation, isBridge, isClinit, isEnum, isFinal, isInit, isModule, isNative, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isSynthetic, isWalaSynthetic, lexicalInfo, symbolTable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.ibm.wala.classLoader.IMethod
getNumberOfDefaultParameters
-
Constructor Details
-
DynamicMethodObject
public DynamicMethodObject(IClass cls, Collection<CAstQualifier> qualifiers, AbstractCFG<?, ?> cfg, SymbolTable symtab, boolean hasCatchBlock, Map<IBasicBlock<SSAInstruction>, TypeReference[]> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo)
-
-
Method Details
-
getEntity
- Specified by:
getEntity
in interfaceAstMethod.Retranslatable
-
retranslate
- Specified by:
retranslate
in interfaceAstMethod.Retranslatable
-
getClassHierarchy
- Specified by:
getClassHierarchy
in interfaceIClassHierarchyDweller
-
toString
-
getDeclaredExceptions
- Specified by:
getDeclaredExceptions
in interfaceIMethod
- Returns:
- an array of the exception types declared by the throws clause for this method, or null if there are none
-
getParents
- Specified by:
getParents
in classAstMethod
-
getLocalVariableName
- Specified by:
getLocalVariableName
in interfaceIMethod
- 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.
-
hasLocalVariableTable
public boolean hasLocalVariableTable()- Specified by:
hasLocalVariableTable
in interfaceIMethod
- Returns:
- true iff the local variable table information for this method is available
-
getMaxLocals
public int getMaxLocals() -
getMaxStackHeight
public int getMaxStackHeight() -
getParameterType
Description copied from interface:IMethod
By convention, for a non-static method, getParameterType(0) is the this pointer- Specified by:
getParameterType
in interfaceIMethod
-