edu.mit.ai.psg.jeva
Class EnvProcedureBoundary
java.lang.Object
|
+--edu.mit.ai.psg.jeva.EnvBase
|
+--edu.mit.ai.psg.jeva.EnvProcedureBoundary
- public class EnvProcedureBoundary
- extends EnvBase
Env used at procedure-like boundaries so lookupLocal does not look any
farther for local variable names. Used for methods, constructors, field
initializers, and other initializers.
(lookupLocal is 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])
Captures method or constructor
for checking return type and checked exceptions.
- Author:
- CarlManning, caroma@ai.mit.edu
Copyright (c) 1997, 1998, 1999 Massachusetts Institute of Technology
EnvProcedureBoundary
public EnvProcedureBoundary(String methodName,
IMember methodOrConstructor,
IEnv nextEnv)
lookupLocal
public IStore lookupLocal(String queryName)
- Overrides:
- lookupLocal in class EnvBase
lookupLabel
public boolean lookupLabel(String queryName)
lookupReturnType
public IClass lookupReturnType()
- Overrides:
- lookupReturnType in class EnvBase
lookupThrows
public IClass[] lookupThrows()
- Overrides:
- lookupThrows in class EnvBase
toString
public String toString()
- Overrides:
- toString in class EnvBase