edu.mit.ai.psg.jeva
Class EnvThis

java.lang.Object
  |
  +--edu.mit.ai.psg.jeva.EnvBase
        |
        +--edu.mit.ai.psg.jeva.EnvThis

public class EnvThis
extends EnvBase

EnvThis stores object self reference in an environment chain.


Constructor Summary
protected EnvThis(Object object, IEnv nextEnv)
           
 
Method Summary
 Object lookupThis()
          return "this", or null if not in non-static context (method, constructor, non-static initializer)
 String toString()
           
 
Methods inherited from class edu.mit.ai.psg.jeva.EnvBase
getNext, getOptionBits, lookupClass, lookupEnclosingClass, lookupEnclosingPackage, lookupField, lookupLabel, lookupLocal, lookupPackage, lookupReturnType, lookupThrows
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnvThis

protected EnvThis(Object object,
                  IEnv nextEnv)
Method Detail

lookupThis

public Object lookupThis()
Description copied from interface: IEnv
return "this", or null if not in non-static context (method, constructor, non-static initializer)
Overrides:
lookupThis in class EnvBase

toString

public String toString()
Overrides:
toString in class EnvBase

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-feedback@ai.mit.edu