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, symbolMap
annotations, EMPTYSET
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
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, visitSidecar
apply, displayNamedOpaque, equals, eqv, eval, express, getValue, synopsis, synopsis, toString, valueEqual, valueHashCode, write, writeReplace
deserializeAnnotations, getAnnotation, getAnnotation, getAnnotationKeys, getAnnotations, getName, readExternal, readResolve, serializeAnnotations, setAnnotation, setAnnotation, setName, visitAnnotations, writeExternal
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
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, setName
getName, setName
protected 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 SymbolicEnvironment
getParent
in class MemorySymEnv
public void undefine(Symbol s)
undefine
in interface SymbolicEnvironment
undefine
in class MemorySymEnv
public int getLoc(Symbol s)
getLoc
in interface SymbolicEnvironment
getLoc
in class MemorySymEnv
public int store(Symbol s, Value v)
store
in class MemorySymEnv
s
- the key being setv
- the value associated with the keypublic void deserialize(Deserializer d) throws java.io.IOException
Expression
deserialize
in interface SymbolicEnvironment
deserialize
in class MemorySymEnv
d
- the Deserializerjava.io.IOException
public void serialize(Serializer s) throws java.io.IOException
Expression
serialize
in interface SymbolicEnvironment
serialize
in class MemorySymEnv
s
- the Serializerjava.io.IOException
public boolean visit(ExpressionVisitor v)
visit
in interface ExpressionVisitee
visit
in class MemorySymEnv