|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mit.ai.psg.jevaES.EnvEnd
A tail environment node that holds the root package.
| Inner classes inherited from class edu.mit.ai.psg.jevaES.IEnv |
IEnv.ClassResult |
| Method Summary | |
IEnv |
getNext()
get next env in chain; used by lookup methods |
int |
getOptionBits()
get option bits; for options, see Jeva |
IEnv.ClassResult |
lookupClass(String queryName)
find root class with this name; nested classes found from parent. |
IPackage |
lookupEnclosingPackage()
return enclosing package |
IStatementNode |
lookupLabel(String queryName,
boolean isForContinue)
if label found, return node of statement it labels; stops at method or initializer boundary. |
IStore |
lookupLocal(String queryName)
lookup restricted to local variables and parameters, used for checking if a local variable name is already in use. |
IPackage |
lookupPackage(String firstPackageName)
find root package with this name; sub-packages found from parent |
Class |
lookupReturnType()
return type of enclosing method, or void.class if in a constructor, or null if in a static initializer |
Class[] |
lookupThrows()
find checked exceptions declared in throws clause of enclosing method or constructor, or null if not in a method or constructor |
static IEnv |
makeDefaultEnv(int initOptions)
options default is 0; for explanation see JevaES |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Method Detail |
public static IEnv makeDefaultEnv(int initOptions)
JevaESpublic String toString()
public IStore lookupLocal(String queryName)
public IStatementNode lookupLabel(String queryName,
boolean isForContinue)
public IEnv.ClassResult lookupClass(String queryName)
IEnv.ClassResult if found, else null;public IPackage lookupPackage(String firstPackageName)
public Class lookupReturnType()
public Class[] lookupThrows()
public IPackage lookupEnclosingPackage()
public int getOptionBits()
public IEnv getNext()
|
Copyright (c) 1996-1999 Massachusetts Institute of Technology Feedback: jeva-feedback@ai.mit.edu |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||