All Packages Class Hierarchy This Package Previous Next Index
Class Jaja.Environment
java.lang.Object
|
+----Jaja.Jaja
|
+----Jaja.Entity
|
+----Jaja.Environment
- public abstract class Environment
- extends Entity
This is the abstract class for all kind of environments.
Environments should support lookup and update to read/write
variables. They must also support extend to incorporate a
new variable but a default extend method is specified here.
An environment maps strings to values.
-
next
- Environments may be linked through this field.
-
Environment()
-
-
extend(String, Value)
- This method extends an environment with a new binding.
-
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.
next
public Environment next
- Environments may be linked through this field.
Environment
public Environment()
lookup
public abstract Value lookup(String name)
- This method look for the value bound to a given variable.
update
public abstract Value update(String name,
Value v)
- This method updates in place the value bound to a given variable.
extend
public Environment extend(String name,
Value v)
- This method extends an environment with a new binding.
For that and in all cases, it uses a LocalEnvironment.
All Packages Class Hierarchy This Package Previous Next Index