sisc.ser
Class Library
java.lang.Object
sisc.util.Util
sisc.ser.Library
- All Implemented Interfaces:
- Version
public class Library
- extends Util
Fields inherited from class sisc.util.Util |
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 |
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 |
name
protected java.lang.String name
lib
protected BlockDeserializer lib
names
protected java.util.Map names
Library
public Library(java.lang.String name,
BlockDeserializer lib,
java.util.Map names)
load
public static Library load(AppContext ctx,
java.net.URL u)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
load
public static Library load(AppContext ctx,
SeekableDataInputStream di)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
getEntryPoint
public int getEntryPoint(Symbol name)
getLocalExpression
public Expression getLocalExpression(Symbol name)
throws java.io.IOException
- Throws:
java.io.IOException
getExpression
public Expression getExpression(Symbol name)
throws java.io.IOException
- Throws:
java.io.IOException
getExpression
public Expression getExpression(int oid)
throws java.io.IOException
- Throws:
java.io.IOException
getName
public java.lang.String getName()
reverseLookup
public int reverseLookup(Expression e)
- Given an expression, return the entry point id of the expression if any, -1 otherwise.