edu.rice.cs.drjava.model.repl.newjvm
Class InterpreterJVM.DebugMethodContext

java.lang.Object
  extended by edu.rice.cs.dynamicjava.interpreter.DelegatingContext
      extended by edu.rice.cs.drjava.model.repl.newjvm.InterpreterJVM.DebugMethodContext
All Implemented Interfaces:
TypeContext
Enclosing class:
InterpreterJVM

private static class InterpreterJVM.DebugMethodContext
extends DelegatingContext

A custom context for interpreting within the body of a defined method.


Field Summary
private  boolean _isStatic
           
 
Constructor Summary
InterpreterJVM.DebugMethodContext(TypeContext next, boolean isStatic)
           
 
Method Summary
protected  TypeContext duplicate(TypeContext next)
           
 Iterable<Type> getDeclaredThrownTypes()
           
 Type getReturnType()
           
 DJClass getThis()
           
 DJClass getThis(String className)
           
 
Methods inherited from class edu.rice.cs.dynamicjava.interpreter.DelegatingContext
accessModule, fieldExists, functionExists, getClassLoader, getLocalFunctions, getLocalFunctions, getLocalVariable, getThis, getTopLevelClass, getTypeVariable, importField, importMemberClass, importMemberClasses, importMethod, importStaticMembers, importTopLevelClass, importTopLevelClasses, initializingClass, localFunctionExists, localVariableExists, makeAnonymousClassName, makeClassName, memberClassExists, methodExists, setPackage, topLevelClassExists, typeContainingField, typeContainingMemberClass, typeContainingMethod, typeExists, typeVariableExists, variableExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_isStatic

private final boolean _isStatic
Constructor Detail

InterpreterJVM.DebugMethodContext

public InterpreterJVM.DebugMethodContext(TypeContext next,
                                         boolean isStatic)
Method Detail

duplicate

protected TypeContext duplicate(TypeContext next)
Specified by:
duplicate in class DelegatingContext

getThis

public DJClass getThis()
Specified by:
getThis in interface TypeContext
Overrides:
getThis in class DelegatingContext

getThis

public DJClass getThis(String className)
Specified by:
getThis in interface TypeContext
Overrides:
getThis in class DelegatingContext

getReturnType

public Type getReturnType()
Specified by:
getReturnType in interface TypeContext
Overrides:
getReturnType in class DelegatingContext

getDeclaredThrownTypes

public Iterable<Type> getDeclaredThrownTypes()
Specified by:
getDeclaredThrownTypes in interface TypeContext
Overrides:
getDeclaredThrownTypes in class DelegatingContext