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.


Constructor Index

 o LocalEnvironment(String, Value, Environment)

Method Index

 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.

Constructors

 o LocalEnvironment
 public LocalEnvironment(String n,
                         Value v,
                         Environment r)

Methods

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

Overrides:
lookup in class Environment
 o 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