All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Jaja.DynamicEnvironment

java.lang.Object
   |
   +----Jaja.Jaja
           |
           +----Jaja.Entity
                   |
                   +----Jaja.DynamicEnvironment

public class DynamicEnvironment
extends Entity
This class is used to represent dynamic environments. It is similar to Environment but yields Objects instead of Values (therefore it does not inherit from Environment). We store Objects instead of Values so we can store any kind of Java objects (streams or URL for instance).

The dynamic environment is represented by a linked list of nodes; the last 'next' field is null.


Method Index

 o createDynamic(String, Object)
Create a dynamic environment holding a single binding.
 o extendDynamic(String, Object)
Extend a dynamic environment with a new binding.
 o getDynamicValue(String)
Search a dynamic environment for the Object associated to a dynamic variable (specified by its name).

Methods

 o extendDynamic
 public DynamicEnvironment extendDynamic(String s,
                                         Object v)
Extend a dynamic environment with a new binding.

 o createDynamic
 public static DynamicEnvironment createDynamic(String s,
                                                Object v)
Create a dynamic environment holding a single binding.

 o getDynamicValue
 public Object getDynamicValue(String s)
Search a dynamic environment for the Object associated to a dynamic variable (specified by its name). This method returns null by default. This is an Object instead of a Value since we need to store an URL.


All Packages  Class Hierarchy  This Package  Previous  Next  Index