sisc.ser
Class Library

java.lang.Object
  extended by sisc.util.Util
      extended by sisc.ser.Library
All Implemented Interfaces:
Version

public class Library
extends Util


Field Summary
protected  BlockDeserializer lib
           
protected  java.lang.String name
           
protected  java.util.Map names
           
 
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
 
Fields inherited from interface sisc.util.Version
VERSION
 
Constructor Summary
Library(java.lang.String name, BlockDeserializer lib, java.util.Map names)
           
 
Method Summary
 int getEntryPoint(Symbol name)
           
 Expression getExpression(int oid)
           
 Expression getExpression(Symbol name)
           
 Expression getLocalExpression(Symbol name)
           
 java.lang.String getName()
           
static Library load(AppContext ctx, SeekableDataInputStream di)
           
static Library load(AppContext ctx, java.net.URL u)
           
 int reverseLookup(Expression e)
          Given an expression, return the entry point id of the expression if any, -1 otherwise.
 
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
 

Field Detail

name

protected java.lang.String name

lib

protected BlockDeserializer lib

names

protected java.util.Map names
Constructor Detail

Library

public Library(java.lang.String name,
               BlockDeserializer lib,
               java.util.Map names)
Method Detail

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.