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.


Variable Index

 o next
Environments may be linked through this field.

Constructor Index

 o Environment()

Method Index

 o extend(String, Value)
This method extends an environment with a new binding.
 o lookup(String)
This method look for the value bound to a given variable.
 o update(String, Value)
This method updates in place the value bound to a given variable.

Variables

 o next
 public Environment next
Environments may be linked through this field.

Constructors

 o Environment
 public Environment()

Methods

 o lookup
 public abstract Value lookup(String name)
This method look for the value bound to a given variable.

 o update
 public abstract Value update(String name,
                              Value v)
This method updates in place the value bound to a given variable.

 o 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