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.
-
createDynamic(String, Object)
- Create a dynamic environment holding a single binding.
-
extendDynamic(String, Object)
- Extend a dynamic environment with a new binding.
-
getDynamicValue(String)
- Search a dynamic environment for the Object associated to a
dynamic variable (specified by its name).
extendDynamic
public DynamicEnvironment extendDynamic(String s,
Object v)
- Extend a dynamic environment with a new binding.
createDynamic
public static DynamicEnvironment createDynamic(String s,
Object v)
- Create a dynamic environment holding a single binding.
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