sisc.io
Class SharedValueWriter

java.lang.Object
  extended by sisc.util.Util
      extended by sisc.io.PortValueWriter
          extended by sisc.io.SharedValueWriter
All Implemented Interfaces:
ValueWriter, ExpressionVisitor, Version

public class SharedValueWriter
extends PortValueWriter


Field Summary
 
Fields inherited from class sisc.util.Util
BACKQUOTE, BEGIN, bundles, 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
SharedValueWriter(java.io.Writer port, boolean vectorLengthPrefixing, boolean caseSensitive)
           
 
Method Summary
 ValueWriter append(Value v)
           
protected  void displayOrWrite(Value v, boolean display)
           
 boolean isInlinable(Value v)
           
 boolean visit(ExpressionVisitee e)
           
 
Methods inherited from class sisc.io.PortValueWriter
append, append, caseSensitive, display, vectorLengthPrefixing, write
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedValueWriter

public SharedValueWriter(java.io.Writer port,
                         boolean vectorLengthPrefixing,
                         boolean caseSensitive)
Method Detail

displayOrWrite

protected void displayOrWrite(Value v,
                              boolean display)
                       throws java.io.IOException
Overrides:
displayOrWrite in class PortValueWriter
Throws:
java.io.IOException

visit

public boolean visit(ExpressionVisitee e)
Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class PortValueWriter

append

public ValueWriter append(Value v)
                   throws java.io.IOException
Specified by:
append in interface ValueWriter
Overrides:
append in class PortValueWriter
Throws:
java.io.IOException

isInlinable

public boolean isInlinable(Value v)
Specified by:
isInlinable in interface ValueWriter
Overrides:
isInlinable in class PortValueWriter