sisc.env
Class DynamicEnvironment

java.lang.Object
  extended by sisc.util.Util
      extended by sisc.env.DynamicEnvironment
All Implemented Interfaces:
java.lang.Cloneable, Version

public class DynamicEnvironment
extends Util
implements java.lang.Cloneable


Field Summary
 boolean caseSensitive
           
 Charset characterSet
           
 AppContext ctx
           
 boolean emitDebuggingSymbols
           
 boolean hedgedInlining
           
 Value in
           
 boolean internalDebugging
           
 int maxStackTraceDepth
           
 Value out
           
 java.util.Map parameters
           
 Parser parser
           
 boolean permissiveParsing
           
 boolean printShared
           
 Pair sourceAnnotations
           
 int synopsisLength
           
 boolean vectorLengthPrefixing
           
 Value wind
           
 
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
DynamicEnvironment(AppContext ctx)
           
DynamicEnvironment(AppContext ctx, java.io.InputStream in, java.io.OutputStream out)
           
 
Method Summary
 void bind()
          Binds this DynamicEnvironment to the current thread.
 java.lang.Object clone()
           
 DynamicEnvironment copy()
           
 void extendClassPath(java.net.URL url)
           
 Value getCaseSensitive()
           
 Charset getCharacterSet()
           
 java.lang.ClassLoader getClassLoader()
           
 java.net.URL[] getClassPath()
           
 Value getCurrentInPort()
           
 java.io.Reader getCurrentInReader()
           
 Value getCurrentOutPort()
           
 java.io.Writer getCurrentOutWriter()
           
 Value getEmitAnnotations()
           
 Value getEmitDebuggingSymbols()
           
 Value getHedgedInlining()
           
 Value getInputPort()
           
 Value getInternalDebugging()
           
 Value getMaxStackTraceDepth()
           
 int getMaxStackTraceDepthAsInt()
           
 Value getOutputPort()
           
 Value getPermissiveParsing()
           
 Value getPrintShared()
           
 Value getSourceAnnotations()
           
 Value getStrictR5RSCompliance()
           
 Value getSynopsisLength()
           
 Value getVectorLengthPrefixing()
           
 void setCaseSensitive(Value v)
           
 void setCharacterSet(Value v)
           
 void setEmitAnnotations(Value v)
           
 void setEmitDebuggingSymbols(Value v)
           
 void setHedgedInlining(Value v)
           
 void setInputPort(Value v)
           
 void setInternalDebugging(Value v)
           
 void setMaxStackTraceDepth(Value v)
           
 void setOutputPort(Value v)
           
 void setPermissiveParsing(Value v)
           
 void setPrintShared(Value v)
           
 void setSourceAnnotations(Value v)
           
 void setStrictR5RSCompliance(Value v)
           
 void setSynopsisLength(Value v)
           
 void setVectorLengthPrefixing(Value v)
           
 
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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctx

public final AppContext ctx

in

public Value in

out

public Value out

sourceAnnotations

public Pair sourceAnnotations

characterSet

public Charset characterSet

caseSensitive

public boolean caseSensitive

printShared

public boolean printShared

vectorLengthPrefixing

public boolean vectorLengthPrefixing

emitDebuggingSymbols

public boolean emitDebuggingSymbols

permissiveParsing

public boolean permissiveParsing

hedgedInlining

public boolean hedgedInlining

internalDebugging

public boolean internalDebugging

synopsisLength

public int synopsisLength

maxStackTraceDepth

public int maxStackTraceDepth

wind

public Value wind

parser

public Parser parser

parameters

public java.util.Map parameters
Constructor Detail

DynamicEnvironment

public DynamicEnvironment(AppContext ctx)

DynamicEnvironment

public DynamicEnvironment(AppContext ctx,
                          java.io.InputStream in,
                          java.io.OutputStream out)
Method Detail

getCurrentInPort

public Value getCurrentInPort()

getCurrentInReader

public java.io.Reader getCurrentInReader()

getCurrentOutPort

public Value getCurrentOutPort()

getCurrentOutWriter

public java.io.Writer getCurrentOutWriter()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

copy

public DynamicEnvironment copy()

bind

public void bind()
Binds this DynamicEnvironment to the current thread. DynamicEnvironments must not be used across different threads. This method enforces this. It also initialises the DynamicEnvironments's class loader, which, if the security permissions allow it, will have the current thread's context class loader as a parent.


getClassLoader

public java.lang.ClassLoader getClassLoader()

getClassPath

public java.net.URL[] getClassPath()

extendClassPath

public void extendClassPath(java.net.URL url)

getInputPort

public Value getInputPort()

setInputPort

public void setInputPort(Value v)

getOutputPort

public Value getOutputPort()

setOutputPort

public void setOutputPort(Value v)

getSourceAnnotations

public Value getSourceAnnotations()

setSourceAnnotations

public void setSourceAnnotations(Value v)

getCharacterSet

public Charset getCharacterSet()

setCharacterSet

public void setCharacterSet(Value v)

getCaseSensitive

public Value getCaseSensitive()

setCaseSensitive

public void setCaseSensitive(Value v)

getPrintShared

public Value getPrintShared()

setPrintShared

public void setPrintShared(Value v)

getVectorLengthPrefixing

public Value getVectorLengthPrefixing()

setVectorLengthPrefixing

public void setVectorLengthPrefixing(Value v)

getEmitDebuggingSymbols

public Value getEmitDebuggingSymbols()

setEmitDebuggingSymbols

public void setEmitDebuggingSymbols(Value v)

getPermissiveParsing

public Value getPermissiveParsing()

setPermissiveParsing

public void setPermissiveParsing(Value v)

getHedgedInlining

public Value getHedgedInlining()

setHedgedInlining

public void setHedgedInlining(Value v)

getInternalDebugging

public Value getInternalDebugging()

setInternalDebugging

public void setInternalDebugging(Value v)

getSynopsisLength

public Value getSynopsisLength()

setSynopsisLength

public void setSynopsisLength(Value v)

getEmitAnnotations

public Value getEmitAnnotations()

setEmitAnnotations

public void setEmitAnnotations(Value v)

getStrictR5RSCompliance

public Value getStrictR5RSCompliance()

setStrictR5RSCompliance

public void setStrictR5RSCompliance(Value v)

getMaxStackTraceDepthAsInt

public int getMaxStackTraceDepthAsInt()

getMaxStackTraceDepth

public Value getMaxStackTraceDepth()

setMaxStackTraceDepth

public void setMaxStackTraceDepth(Value v)