class BoundSymbols.Value extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
evaluated
Used to indicate that
expression has already been evaluated by
BoundSymbols.evaluate(TransientAgent, Environment, Map) . |
(package private) LispObject |
expression
The expression that is evaluated by
BoundSymbols.evaluate(TransientAgent, Environment, Map) . |
(package private) String |
reference
The name of the Value object in the parent that this object defers to.
|
(package private) Object |
value
The explicit value of the object.
|
(package private) Map<Object,Object> |
valueMap
The map of values to values in the parent Value structure this is
to be used to translate when getting and putting values.
|
Constructor and Description |
---|
Value(LispObject exp)
Constructor to make a simple local-expression Value, where the
expression's result is placed in value by
BoundSymbols.evaluate(TransientAgent, Environment, Map) . |
Value(Object value)
Constructor to make a simple local-value Value.
|
Value(String reference)
Constructor to make a simple reference to a parent Value.
|
Modifier and Type | Method and Description |
---|---|
protected BoundSymbols.Value |
clone() |
String |
toString()
Prints out this object in the form:
|
String reference
LispObject expression
BoundSymbols.evaluate(TransientAgent, Environment, Map)
.
Ignored if reference
is not null.boolean evaluated
expression
has already been evaluated by
BoundSymbols.evaluate(TransientAgent, Environment, Map)
.Value(Object value)
value
- The value to be associated with the ValueValue(String reference)
reference
- The name of the reference value in the parent,
where the name of this value need not be the same of the name
of this BoundSymobls
object.Value(LispObject exp)
BoundSymbols.evaluate(TransientAgent, Environment, Map)
.
The expression must be evaluated before the value my
BoundSymbols.evaluate(TransientAgent, Environment, Map)
before BoundSymbols.get(String)
will safely return a
value.exp
- The expression; normally a Lisp Cons object.protected BoundSymbols.Value clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException