com.ibm.wala.cast.js.loader
Class JavaScriptLoader.JavaScriptMethodObject

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

public class JavaScriptLoader.JavaScriptMethodObject
extends AstMethod


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
 
Method Summary
 IClassHierarchy getClassHierarchy()
           
 TypeReference[] getDeclaredExceptions()
           
 java.lang.String getLocalVariableName(int bcIndex, int localNumber)
           
 int getMaxLocals()
           
 int getMaxStackHeight()
           
 TypeReference getParameterType(int i)
          Method getParameterType.
 AstMethod.LexicalParent[] getParents()
           
 boolean hasLocalVariableTable()
           
 java.lang.String toString()
           
 
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
 

Method Detail

getClassHierarchy

public IClassHierarchy getClassHierarchy()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDeclaredExceptions

public TypeReference[] getDeclaredExceptions()
Returns:
an array of the exception types declared by the throws clause for this method, or null if there are none

getParents

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

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

getMaxLocals

public int getMaxLocals()
Returns:
maximum number of JVM locals used by this method

getMaxStackHeight

public int getMaxStackHeight()
Returns:
maximum height of JVM stack used by this method

getParameterType

public TypeReference getParameterType(int i)
Description copied from interface: IMethod
Method getParameterType. By convention, for a non-static method, getParameterType(0) is the this pointer