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

Method Index

 o getNext()
get next env frame; used by lookup methods
 o lookup(String)
lookup local variables, parameters, fields
 o lookupClass(String)
find root class with this name; nested classes found from parent
 o lookupInClass(String)
ditto in class, used for checking if a field name is in use.
 o lookupInMethod(String)
lookup restricted to locals and parameters of a method, used for checking if a local variable name is already in use.
 o lookupLabel(String)
return true if label found; stops at method or initializer boundary.
 o lookupPackage(String)
find root package with this name; sub-packages found from parent

Methods

 o lookup
 public abstract IStore lookup(String queryName)
lookup local variables, parameters, fields

 o 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]

 o lookupInClass
 public abstract IStore lookupInClass(String queryName)
ditto in class, used for checking if a field name is in use.

 o lookupLabel
 public abstract boolean lookupLabel(String queryName)
return true if label found; stops at method or initializer boundary.

 o lookupClass
 public abstract Class lookupClass(String queryName)
find root class with this name; nested classes found from parent

 o lookupPackage
 public abstract IPackage lookupPackage(String rootPackageName)
find root package with this name; sub-packages found from parent

 o getNext
 public abstract IEnv getNext()
get next env frame; used by lookup methods


All Packages  Class Hierarchy  This Package  Previous  Next  Index