All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Jaja.Vector

java.lang.Object
   |
   +----Jaja.Jaja
           |
           +----Jaja.Value
                   |
                   +----Jaja.Vector

public class Vector
extends Value
This class implements Scheme mutable vectors.


Variable Index

 o item
The content of the Scheme vector is public; it may be modified via v.item[index] as R- or L-value.

Constructor Index

 o Vector(int)
 o Vector(int, Value)
 o Vector(Value[])

Method Index

 o equalp(Value)
Structural comparison: True if the two objects have the same class and content.
 o eval(Environment, WorldAble)
R4RS does not specify whether vectors may be evaluated.
 o toReadableString()
Convert a Value into a computer-readable Java String.
 o toString()
Convert a Value into a human-readable Java String.

Variables

 o item
 public Value item[]
The content of the Scheme vector is public; it may be modified via v.item[index] as R- or L-value.

Constructors

 o Vector
 public Vector(int size)
 o Vector
 public Vector(int size,
               Value defaultValue)
 o Vector
 public Vector(Value arguments[])

Methods

 o equalp
 public boolean equalp(Value other)
Structural comparison: True if the two objects have the same class and content.

Overrides:
equalp in class Value
 o toString
 public String toString()
Convert a Value into a human-readable Java String.

Overrides:
toString in class Value
 o toReadableString
 public String toReadableString()
Convert a Value into a computer-readable Java String.

Overrides:
toReadableString in class Value
 o eval
 public Value eval(Environment r,
                   WorldAble world)
R4RS does not specify whether vectors may be evaluated. Jaja takes position and forbids it.

Overrides:
eval in class Value

All Packages  Class Hierarchy  This Package  Previous  Next  Index