All Packages Class Hierarchy This Package Previous Next Index
Interface edu.mit.ai.psg.jevaES.IEnv
- public interface IEnv
IEnv: Interface to objects in which names can be looked up.
Environments are implemented as a chain, so each can pass the
request on to the next if the name is not found.
- Author:
- CarlManning, caroma@ai.mit.edu
Copyright (c) 1997 Massachusetts Institute of Technology
-
getNext()
- get next env frame; used by lookup methods
-
lookup(String)
- lookup local variables, parameters, fields
-
lookupClass(String)
- find root class with this name; nested classes found from parent
-
lookupInClass(String)
- ditto in class, used for checking if a field name is in use.
-
lookupInMethod(String)
- lookup restricted to locals and parameters of a method,
used for checking if a local variable name is already in use.
-
lookupLabel(String)
- return true if label found; stops at method or initializer boundary.
-
lookupPackage(String)
- find root package with this name; sub-packages found from parent
lookup
public abstract IStore lookup(String queryName)
- lookup local variables, parameters, fields
lookupInMethod
public abstract IStore lookupInMethod(String queryName)
- lookup restricted to locals and parameters of a method,
used for checking if a local variable name is already in use.
[JavaLangSpec1.0sec14.3.2]
lookupInClass
public abstract IStore lookupInClass(String queryName)
- ditto in class, used for checking if a field name is in use.
lookupLabel
public abstract boolean lookupLabel(String queryName)
- return true if label found; stops at method or initializer boundary.
lookupClass
public abstract Class lookupClass(String queryName)
- find root class with this name; nested classes found from parent
lookupPackage
public abstract IPackage lookupPackage(String rootPackageName)
- find root package with this name; sub-packages found from parent
getNext
public abstract IEnv getNext()
- get next env frame; used by lookup methods
All Packages Class Hierarchy This Package Previous Next Index