openjava.mop
Class ClosedEnvironment
java.lang.Object
|
+--openjava.mop.Environment
|
+--openjava.mop.ClosedEnvironment
- Direct Known Subclasses:
- ClassEnvironment
- public class ClosedEnvironment
- extends Environment
The class ClosedEnvironment
For example
- Since:
- %SOFTWARE% 1.0
- See Also:
Object
Field Summary |
protected java.util.Hashtable |
symbol_table
|
protected java.util.Hashtable |
table
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
table
protected java.util.Hashtable table
symbol_table
protected java.util.Hashtable symbol_table
ClosedEnvironment
public ClosedEnvironment(Environment env)
- Parameters:
- - Throws:
- -
- See Also:
Object
toString
public java.lang.String toString()
- Overrides:
- toString in class Environment
record
public void record(java.lang.String name,
OJClass clazz)
- Description copied from class: Environment
- Records a class object.
- Overrides:
- record in class Environment
- Tags copied from class: Environment
- Parameters:
name
- the fully-qualified name of the classclazz
- the class object associated with that name
lookupClass
public OJClass lookupClass(java.lang.String name)
- Description copied from class: Environment
- Looks a class object up.
- Overrides:
- lookupClass in class Environment
- Tags copied from class: Environment
- Parameters:
name
- the name of the fully-qualified name of
the class looked for
bindVariable
public void bindVariable(java.lang.String name,
OJClass clazz)
- binds a name to the class type.
- Overrides:
- bindVariable in class Environment
- Parameters:
name
- the fully-qualified name of the classclazz
- the class object associated with that name
lookupBind
public OJClass lookupBind(java.lang.String name)
- Description copied from class: Environment
- Looks up a binded type of the given variable or field name.
- Overrides:
- lookupBind in class Environment
- Tags copied from class: Environment
- Parameters:
name
- the fully-qualified name of the classclazz
- the class object associated with that name