openjava.mop
Class ClosedEnvironment
java.lang.Object
|
+--openjava.mop.Environment
|
+--openjava.mop.ClosedEnvironment
- Direct Known Subclasses:
- ClassEnvironment, QueryEnvironment
- public class ClosedEnvironment
- extends Environment
An environment whose symbols come from local Java variable, method and class
declarations. It inherits more symbols from its parent environment.
- Since:
- %SOFTWARE% 1.0
- Version:
- 1.0
- Author:
- Michiaki Tatsubori
- See Also:
Object
| Methods inherited from class openjava.mop.Environment |
bindVariable, currentClassName, getClassEnvironmentParent, getGlobalEnvironment, getPackage, getParent, isBind, isQualifiedName, isRegisteredModifier, lookupClass, recordMemberClass, toPackageName, toQualifiedName, toSimpleName |
table
protected Hashtable table
symbol_table
protected Hashtable symbol_table
ClosedEnvironment
public ClosedEnvironment(Environment env)
- Creates a ClosedEnvironment.
toString
public String toString()
- Specified by:
toString in class Environment
record
public void record(String name,
OJClass clazz)
- Description copied from class:
Environment
- Records a class object.
- Specified by:
record in class Environment
- Parameters:
name - the fully-qualified name of the classclazz - the class object associated with that name
lookupClass
public OJClass lookupClass(String name)
- Description copied from class:
Environment
- Looks a class object up.
- Overrides:
lookupClass in class Environment
- Parameters:
name - the name of the fully-qualified name of
the class looked for
bindVariable
public void bindVariable(String name,
Environment.VariableInfo info)
- binds a name to the class type.
- Specified by:
bindVariable in class Environment
- Parameters:
name - the fully-qualified name of the classinfo - the class object associated with that name
lookupBind
public Environment.VariableInfo lookupBind(String name)
- Description copied from class:
Environment
- Looks up a binded type of the given variable or field name.
- Overrides:
lookupBind in class Environment
- Parameters:
name - the fully-qualified name of the class