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.
|
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 |
EnvThis
protected EnvThis(Object object,
IEnv nextEnv)
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