public class LibraryAE extends MemorySymEnv
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
addressMap |
protected Library |
base |
protected java.util.Set |
bindWatch |
protected LibraryBuilder |
lb |
protected int |
parentIdx |
env, EXPFACT, nextFree, parent, sidecars, symbolMapannotations, 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 |
|---|
LibraryAE() |
LibraryAE(Library base)
Operate in "retrieve" mode.
|
LibraryAE(SymbolicEnvironment parent,
LibraryBuilder lb)
Operate in "observe" mode.
|
LibraryAE(Symbol name,
LibraryBuilder lb)
Operate in "observe" mode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBinding(Library lib,
Symbol sym,
int ep) |
void |
addSymbolicBindings(Library lib,
Pair s) |
void |
deserialize(Deserializer d)
All Expressions must implement a default (no-argument) constructor.
|
int |
getLoc(Symbol s) |
SymbolicEnvironment |
getParent() |
void |
serialize(Serializer s)
All Expressions must implement a default (no-argument) constructor.
|
int |
store(Symbol s,
Value v)
Catch all occurences of sets and note them for when we serialize
|
void |
undefine(Symbol s) |
boolean |
visit(ExpressionVisitor v) |
asValue, define, deserializeSidecar, display, expand, getSidecarEnvironment, lookup, lookup, serializeSidecar, set, setParent, trim, visitSidecarapply, displayNamedOpaque, equals, eqv, eval, express, getValue, synopsis, synopsis, toString, valueEqual, valueHashCode, write, writeReplacedeserializeAnnotations, getAnnotation, getAnnotation, getAnnotationKeys, getAnnotations, getName, readExternal, readResolve, serializeAnnotations, setAnnotation, setAnnotation, setName, 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, warnclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, setNamegetName, setNameprotected LibraryBuilder lb
protected Library base
protected java.util.Map addressMap
protected java.util.Set bindWatch
protected int parentIdx
public LibraryAE(Symbol name, LibraryBuilder lb)
name - the name of the SymEnvlb - the library serializerpublic LibraryAE(SymbolicEnvironment parent, LibraryBuilder lb)
parent - the name of the parent SymEnvlb - the library serializerpublic LibraryAE(Library base)
base - the library from which to retrieve bindingspublic LibraryAE()
public SymbolicEnvironment getParent()
getParent in interface SymbolicEnvironmentgetParent in class MemorySymEnvpublic void undefine(Symbol s)
undefine in interface SymbolicEnvironmentundefine in class MemorySymEnvpublic int getLoc(Symbol s)
getLoc in interface SymbolicEnvironmentgetLoc in class MemorySymEnvpublic int store(Symbol s, Value v)
store in class MemorySymEnvs - the key being setv - the value associated with the keypublic void deserialize(Deserializer d) throws java.io.IOException
Expressiondeserialize in interface SymbolicEnvironmentdeserialize in class MemorySymEnvd - the Deserializerjava.io.IOExceptionpublic void serialize(Serializer s) throws java.io.IOException
Expressionserialize in interface SymbolicEnvironmentserialize in class MemorySymEnvs - the Serializerjava.io.IOExceptionpublic boolean visit(ExpressionVisitor v)
visit in interface ExpressionVisiteevisit in class MemorySymEnv