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.


Constructor Index

 o Value()

Method Index

 o eprogn(Environment, WorldAble)
Evaluate a sequence of Values and return the value of the last one.
 o eprognInternal(Value, Environment, WorldAble)
 o eqp(Value)
Physical comparison: True if the two objects is the same.
 o equalp(Value)
Structural comparison: True if the two objects have the same class and content.
 o eval(Environment, WorldAble)
Evaluation is autoquote by default for all values that is, all Values have themselves as value.
 o list_length()
Computes the length of a Value.
 o listify(Value[], int)
Convert an array of Values into a list.
 o toInnerReadableString()
Convert the content of a Value into a computer-readable Java String.
 o toInnerString()
Convert the content of a Value into a human-readable Java String.
 o toReadableString()
Convert a Value into a computer-readable Java String.
 o toString()
Convert a Value into a human-readable Java String.

Constructors

 o Value
 public Value()

Methods

 o eqp
 public boolean eqp(Value other)
Physical comparison: True if the two objects is the same.

 o 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?.

 o 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).

 o 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.

 o 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
 o toReadableString
 public String toReadableString()
Convert a Value into a computer-readable Java String.

 o 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.

 o 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.

 o eval
 public Value eval(Environment r,
                   WorldAble world)
Evaluation is autoquote by default for all values that is, all Values have themselves as value.

 o 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.

 o eprognInternal
 public Value eprognInternal(Value previous,
                             Environment r,
                             WorldAble world)

All Packages  Class Hierarchy  This Package  Previous  Next  Index