sisc.ser
Class LibraryManager

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

public class LibraryManager
extends Util


Field Summary
protected  java.util.Map loadedLibraries
           
 
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
LibraryManager(AppContext ctx)
           
 
Method Summary
 void addLibrary(Library l)
           
 void addLibrary(java.lang.String name, java.net.URL l)
           
 Expression getExpression(Symbol name)
           
 boolean loadLibrary(java.lang.String name)
           
 LibraryBinding lookupBinding(Expression e)
          Returns the reference to a binding in the active libraries, or null if the provided expression isn't an entry point in any library.
 Expression resolveBinding(LibraryBinding lb)
          Returns an expression from an external library
 
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

loadedLibraries

protected java.util.Map loadedLibraries
Constructor Detail

LibraryManager

public LibraryManager(AppContext ctx)
Method Detail

getExpression

public Expression getExpression(Symbol name)
                         throws java.io.IOException
Throws:
java.io.IOException

lookupBinding

public LibraryBinding lookupBinding(Expression e)
                             throws java.io.IOException
Returns the reference to a binding in the active libraries, or null if the provided expression isn't an entry point in any library.

Throws:
java.io.IOException

addLibrary

public void addLibrary(Library l)

addLibrary

public void addLibrary(java.lang.String name,
                       java.net.URL l)

loadLibrary

public boolean loadLibrary(java.lang.String name)

resolveBinding

public Expression resolveBinding(LibraryBinding lb)
                          throws java.io.IOException
Returns an expression from an external library

Throws:
java.io.IOException