com.ibm.wala.cast.java.loader
Class JavaSourceLoaderImpl.ConcreteJavaMethod

java.lang.Object
  extended by com.ibm.wala.cast.loader.AstMethod
      extended by com.ibm.wala.cast.java.loader.JavaSourceLoaderImpl.ConcreteJavaMethod
All Implemented Interfaces:
IMember, IMethod, ContextItem, IClassHierarchyDweller
Enclosing class:
JavaSourceLoaderImpl

public class JavaSourceLoaderImpl.ConcreteJavaMethod
extends AstMethod

DOMO representation of a concrete method (which has a body) on a Java type that resides in a source file


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.wala.cast.loader.AstMethod
AstMethod.DebuggingInformation, AstMethod.LexicalInformation, AstMethod.LexicalParent
 
Field Summary
 
Fields inherited from class com.ibm.wala.cast.loader.AstMethod
catchTypes, cfg, cls, debugInfo, hasCatchBlock, lexicalInfo, qualifiers, ref, symtab
 
Constructor Summary
JavaSourceLoaderImpl.ConcreteJavaMethod(CAstEntity methodEntity, IClass owner, AbstractCFG cfg, SymbolTable symtab, boolean hasCatchBlock, TypeReference[][] catchTypes, AstMethod.LexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo)
           
 
Method Summary
 IClassHierarchy getClassHierarchy()
           
 java.lang.String getLocalVariableName(int bcIndex, int localNumber)
           
 AstMethod.LexicalParent[] getParents()
           
 boolean hasLocalVariableTable()
           
 
Methods inherited from class com.ibm.wala.cast.loader.AstMethod
getControlFlowGraph, getDeclaringClass, getDescriptor, getLineNumber, getName, getNumberOfParameters, getReference, getReturnType, getSelector, getSignature, getSourcePosition, getSourcePosition, hasExceptionHandler, isAbstract, isClinit, isFinal, isInit, isNative, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isSynthetic, isVolatile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaSourceLoaderImpl.ConcreteJavaMethod

public JavaSourceLoaderImpl.ConcreteJavaMethod(CAstEntity methodEntity,
                                               IClass owner,
                                               AbstractCFG cfg,
                                               SymbolTable symtab,
                                               boolean hasCatchBlock,
                                               TypeReference[][] catchTypes,
                                               AstMethod.LexicalInformation lexicalInfo,
                                               AstMethod.DebuggingInformation debugInfo)
Method Detail

getClassHierarchy

public IClassHierarchy getClassHierarchy()

getLocalVariableName

public java.lang.String getLocalVariableName(int bcIndex,
                                             int localNumber)
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

public AstMethod.LexicalParent[] getParents()
Specified by:
getParents in class AstMethod