public abstract class Value extends Expression implements Immediate
annotations, EMPTYSETBACKQUOTE, 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| Constructor and Description |
|---|
Value() |
| Modifier and Type | Method and Description |
|---|---|
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() |
deserialize, deserializeAnnotations, getAnnotation, getAnnotation, getAnnotationKeys, getAnnotations, getName, readExternal, readResolve, serialize, serializeAnnotations, setAnnotation, setAnnotation, setName, visit, visitAnnotations, writeExternalannotated, 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, warnpublic abstract void display(ValueWriter w) throws java.io.IOException
java.io.IOExceptionpublic void apply(Interpreter r) throws ContinuationException
ContinuationExceptionpublic java.lang.String synopsis()
public java.lang.String synopsis(int limit)
limit - The number of characters to displaypublic 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.Objectpublic void eval(Interpreter r) throws ContinuationException
eval in class Expressionr - ContinuationExceptionpublic Value getValue(Interpreter r) throws ContinuationException
getValue in interface ImmediategetValue in class Expressionr - ContinuationExceptionpublic Value express()
Expressionexpress in class Expressionpublic void displayNamedOpaque(ValueWriter w, java.lang.String type) throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamException