All Packages Class Hierarchy This Package Previous Next Index
Class Jaja.Value
java.lang.Object
|
+----Jaja.Jaja
|
+----Jaja.Value
- public abstract class Value
- extends Jaja
This is the top class for all first-class values handled by
Jaja. Default methods exist to compare, compute list-length or
print such values.
-
Value()
-
-
eprogn(Environment, WorldAble)
- Evaluate a sequence of Values and return the value of the last
one.
-
eprognInternal(Value, Environment, WorldAble)
-
-
eqp(Value)
- Physical comparison: True if the two objects is the same.
-
equalp(Value)
- Structural comparison: True if the two objects have the same
class and content.
-
eval(Environment, WorldAble)
- Evaluation is autoquote by default for all values that is, all
Values have themselves as value.
-
list_length()
- Computes the length of a Value.
-
listify(Value[], int)
- Convert an array of Values into a list.
-
toInnerReadableString()
- Convert the content of a Value into a computer-readable Java
String.
-
toInnerString()
- Convert the content of a Value into a human-readable Java String.
-
toReadableString()
- Convert a Value into a computer-readable Java String.
-
toString()
- Convert a Value into a human-readable Java String.
Value
public Value()
eqp
public boolean eqp(Value other)
- Physical comparison: True if the two objects is the same.
equalp
public boolean equalp(Value other)
- Structural comparison: True if the two objects have the same
class and content. By default, equal? is similar to eq?.
list_length
public int list_length()
- Computes the length of a Value. This is the base case for Values
that are not pairs (ie not part of a list).
listify
public static Value listify(Value arguments[],
int i)
- Convert an array of Values into a list. This method is used in
the invocation protocol to gather remaining arguments into a
list. Only the value of the array with an index greater than i
are collected into a list.
toString
public String toString()
- Convert a Value into a human-readable Java String. toString may
also be used by the Java debugger.
- Overrides:
- toString in class Jaja
toReadableString
public String toReadableString()
- Convert a Value into a computer-readable Java String.
toInnerString
public String toInnerString()
- Convert the content of a Value into a human-readable Java String.
This is the base case used for Values that are not pairs.
toInnerReadableString
public String toInnerReadableString()
- Convert the content of a Value into a computer-readable Java
String. This is the base case used for Values that are not
pairs.
eval
public Value eval(Environment r,
WorldAble world)
- Evaluation is autoquote by default for all values that is, all
Values have themselves as value.
eprogn
public Value eprogn(Environment r,
WorldAble world)
- Evaluate a sequence of Values and return the value of the last
one. This is the base case for Values that are not pairs.
eprognInternal
public Value eprognInternal(Value previous,
Environment r,
WorldAble world)
All Packages Class Hierarchy This Package Previous Next Index