All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Jaja.GlobalEnvironment

java.lang.Object
   |
   +----Jaja.Jaja
           |
           +----Jaja.Entity
                   |
                   +----Jaja.Environment
                           |
                           +----Jaja.GlobalEnvironment

public class GlobalEnvironment
extends Environment

Constructor Index

 o GlobalEnvironment()

Method Index

 o adjoinOtherUsefulBindings()
Enrich a global environment with Jaja-specific bindings.
 o adjoinPredefinedBindings()
Enrich a global environment with really primitive bindings ie car, cons but not append which may be defined easily in Scheme.
 o adjoinSpecialPredefinedBindings()
Enrich a global environment with bindings that imply the knowledge of the invocation protocol.
 o lookup(String)
Lookup for a value in a global environment.
 o update(String, Value)
Modify the value a variable.

Constructors

 o GlobalEnvironment
 public GlobalEnvironment()

Methods

 o adjoinPredefinedBindings
 public synchronized GlobalEnvironment adjoinPredefinedBindings()
Enrich a global environment with really primitive bindings ie car, cons but not append which may be defined easily in Scheme.

 o adjoinSpecialPredefinedBindings
 public synchronized GlobalEnvironment adjoinSpecialPredefinedBindings()
Enrich a global environment with bindings that imply the knowledge of the invocation protocol. These are, for the moment, apply and call/ep. Other functions in the same case such as map are not considered as primitive enough to be there.

 o adjoinOtherUsefulBindings
 public synchronized GlobalEnvironment adjoinOtherUsefulBindings()
Enrich a global environment with Jaja-specific bindings.

 o lookup
 public synchronized Value lookup(String n)
Lookup for a value in a global environment. Dereference the Box if any. If the variable is not found, follow the 'next' link.

Overrides:
lookup in class Environment
 o update
 public synchronized Value update(String n,
                                  Value v)
Modify the value a variable. Check if the binding is mutable. If the variable is not found, create a new binding automatically.

Overrides:
update in class Environment

All Packages  Class Hierarchy  This Package  Previous  Next  Index