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