All Packages Class Hierarchy This Package Previous Next Index
Class Jaja.LocalEnvironment
java.lang.Object
|
+----Jaja.Jaja
|
+----Jaja.Entity
|
+----Jaja.Environment
|
+----Jaja.LocalEnvironment
- public class LocalEnvironment
- extends Environment
This is the class for local environments (a kind of Alist). They
are used to implement the interpreter. A local environment directly
yields values.
-
LocalEnvironment(String, Value, Environment)
-
-
lookup(String)
- This method look for the value bound to a given variable.
-
update(String, Value)
- This method updates in place the value bound to a given variable.
LocalEnvironment
public LocalEnvironment(String n,
Value v,
Environment r)
lookup
public Value lookup(String n)
- This method look for the value bound to a given variable.
- Overrides:
- lookup in class Environment
update
public synchronized Value update(String n,
Value v)
- This method updates in place the value bound to a given variable.
- Overrides:
- update in class Environment
All Packages Class Hierarchy This Package Previous Next Index