| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsisc.util.Util
sisc.data.Expression
sisc.data.Value
public abstract class Value
Value is the base class for anything treated as a first-class value within Scheme.
| Field Summary | 
|---|
| Fields inherited from class sisc.data.Expression | 
|---|
| annotations, EMPTYSET | 
| Fields inherited from class sisc.util.Util | 
|---|
| BACKQUOTE, BEGIN, bundles, caseSensitive, EMPTYLIST, EMPTYVEC, EOF, ERRORK, EVAL, EXPSC, EXPTOP, FALSE, FCONT, FIVE, JEXCEPTION, LAMBDA, LOCATION, maxFloatPrecision, MESSAGE, minFloatPrecision, NAME, OTHER, PARENT, permitInterrupts, QUOTE, QUOTESYM, REPORT, SETBANG, SISC, SISC_SPECIFIC, SISCB, SOURCE_COLUMN, SOURCE_FILE, SOURCE_LINE, SYMENV, THIS, TOPLEVEL, TRUE, UNQUOTE, UNQUOTE_SPLICING, VOID, ZV | 
| Fields inherited from interface sisc.util.Version | 
|---|
| VERSION | 
| Constructor Summary | |
|---|---|
| Value() | |
| Method Summary | |
|---|---|
|  void | apply(Interpreter r) | 
| abstract  void | display(ValueWriter w) | 
|  void | displayNamedOpaque(ValueWriter w,
                   java.lang.String type)Helper function to generate an opaque type representation which may be named | 
|  boolean | equals(java.lang.Object v)Compares this Value to another. | 
|  boolean | eqv(java.lang.Object v)Compares this Value to another for equality according to the rules of Scheme's eqv?. | 
|  void | eval(Interpreter r)Called to evaluate this value. | 
|  Value | express()A debugging function, express returns a Scheme value that describes this expression. | 
|  Value | getValue(Interpreter r)Called to obtain the value of this Value. | 
|  java.lang.String | synopsis() | 
|  java.lang.String | synopsis(int limit)A synopsis is a limited number of characters of a human readable Value representation. | 
|  java.lang.String | toString() | 
|  boolean | valueEqual(Value v)Compares this value to another for semantic equality. | 
|  int | valueHashCode()a hashCode function consistent with valueEqual | 
|  void | write(ValueWriter w) | 
|  java.lang.Object | writeReplace() | 
| Methods inherited from class sisc.data.Expression | 
|---|
| deserialize, deserializeAnnotations, getAnnotation, getAnnotation, getAnnotationKeys, getAnnotations, getName, readExternal, readResolve, serialize, serializeAnnotations, setAnnotation, setAnnotation, setName, visit, visitAnnotations, writeExternal | 
| Methods inherited from class sisc.util.Util | 
|---|
| annotated, annotatedAppEval, append, argCheck, argsToSymbols, assq, bininport, bininstream, binoutport, binoutstream, box, character, charinport, charinreader, charoutport, charoutwriter, charsetFromString, chr, cont, currentClassLoader, env, error, error, error, error, error, error, error, expr, getDefaultCharacterSet, immutablePair, immutableVector, inport, javaExceptionToString, javaWrap, justify, length, liMessage, liMessage, liMessage, liMessage, liMessage, liMessage, liMessage, list, list, list, list, list, makeURL, mapcar, memq, nlib, num, outport, pair, pairToExpressions, pairToExpVect, pairToValues, proc, read, registerBundle, reverse, reverseInPlace, simpleErrorToString, sourceAnnotations, str, string, sym, symbol, symval, truePair, truth, truth, typeError, typeError, updateName, url, url, url, valArrayToList, valArrayToList, valArrayToVec, vec, warn, warn, warn | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public Value()
| Method Detail | 
|---|
public abstract void display(ValueWriter w)
                      throws java.io.IOException
java.io.IOException
public void apply(Interpreter r)
           throws ContinuationException
ContinuationExceptionpublic java.lang.String synopsis()
public java.lang.String synopsis(int limit)
limit - The number of characters to display
public void write(ValueWriter w)
           throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object v)
equals in class java.lang.Objectv - the other Valuepublic boolean eqv(java.lang.Object v)
v - the other Valuepublic boolean valueEqual(Value v)
v - the other Valuepublic int valueHashCode()
public java.lang.String toString()
toString in class java.lang.Object
public void eval(Interpreter r)
          throws ContinuationException
eval in class Expressionr - 
ContinuationException
public Value getValue(Interpreter r)
               throws ContinuationException
getValue in interface ImmediategetValue in class Expressionr - 
ContinuationExceptionpublic Value express()
Expression
express in class Expression
public void displayNamedOpaque(ValueWriter w,
                               java.lang.String type)
                        throws java.io.IOException
java.io.IOException
public java.lang.Object writeReplace()
                              throws java.io.ObjectStreamException
java.io.ObjectStreamException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||