Class JavaSourceLoaderImpl.ConcreteJavaMethod
java.lang.Object
com.ibm.wala.cast.loader.AstMethod
com.ibm.wala.cast.java.loader.JavaSourceLoaderImpl.JavaEntityMethod
com.ibm.wala.cast.java.loader.JavaSourceLoaderImpl.ConcreteJavaMethod
- All Implemented Interfaces:
IMember, IMethod, ContextItem, IClassHierarchyDweller
- Enclosing class:
JavaSourceLoaderImpl
DOMO representation of a concrete method (which has a body) on a Java type that resides in a
source file
- Author:
- rfuhrer
-
Nested Class Summary
Nested classes/interfaces inherited from class AstMethod
AstMethod.DebuggingInformation, AstMethod.LexicalInformation, AstMethod.LexicalParent, AstMethod.RetranslatableNested classes/interfaces inherited from interface ContextItem
ContextItem.Value<T>Nested classes/interfaces inherited from interface IMethod
IMethod.SourcePosition -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConcreteJavaMethod(CAstEntity methodEntity, IClass owner, AbstractCFG<?, ?> cfg, SymbolTable symtab, boolean hasCatchBlock, Map<IBasicBlock<SSAInstruction>, TypeReference[]> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo) -
Method Summary
Methods inherited from class JavaSourceLoaderImpl.JavaEntityMethod
computeExceptionTypes, computeParameterTypes, getDeclaredExceptions, getMaxLocals, getMaxStackHeight, getParameterType, toStringMethods inherited from class 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, symbolTableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IMethod
getNumberOfDefaultParameters
-
Constructor Details
-
ConcreteJavaMethod
public ConcreteJavaMethod(CAstEntity methodEntity, IClass owner, AbstractCFG<?, ?> cfg, SymbolTable symtab, boolean hasCatchBlock, Map<IBasicBlock<SSAInstruction>, TypeReference[]> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo)
-
-
Method Details
-
getClassHierarchy
-
getLocalVariableName
- 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()- Returns:
- true iff the local variable table information for this method is available
-
getParents
- Specified by:
getParentsin classAstMethod
-