sisc.nativefun
Class IndexedLibraryAdapter

java.lang.Object
  extended by sisc.util.Util
      extended by sisc.data.Expression
          extended by sisc.data.Value
              extended by sisc.nativefun.NativeLibrary
                  extended by sisc.nativefun.IndexedLibraryAdapter
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Immediate, NamedValue, ExpressionVisitee, Version
Direct Known Subclasses:
Annotations.Index, BinaryIO.Index, BufferIO.Index, Conversion.Index, CustomIO.Index, Debugging.Index, FileManipulation.Index, IO.Index, Logical.Index, NativeModuleTemplate.Index, Networking.Index, Operation.Index, OptionalPrimitives.Index, Primitives.Index, Primitives.Index, Primitives.Index, Reflection.Index, SerialIO.Index, StringIO.Index, Threads.Index, Types.Index

public abstract class IndexedLibraryAdapter
extends NativeLibrary

See Also:
Serialized Form

Field Summary
protected  java.util.HashMap bindings
           
 
Fields inherited from class sisc.data.Expression
annotations, EMPTYSET
 
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
IndexedLibraryAdapter()
           
 
Method Summary
abstract  Value construct(java.lang.Object context, int id)
           
protected  void define(java.lang.String s, java.lang.Class context, int id)
           
protected  void define(java.lang.String s, int id)
           
 Value getBindingValue(Interpreter r, Symbol name)
           
 Symbol[] getLibraryBindingNames(Interpreter r)
           
 java.lang.String getLibraryName()
           
 float getLibraryVersion()
           
 
Methods inherited from class sisc.nativefun.NativeLibrary
bindAll, display
 
Methods inherited from class sisc.data.Value
apply, displayNamedOpaque, equals, eqv, eval, express, getValue, synopsis, synopsis, toString, valueEqual, valueHashCode, write, writeReplace
 
Methods inherited from class sisc.data.Expression
deserialize, deserializeAnnotations, getAnnotation, getAnnotation, getAnnotationKeys, getAnnotations, getName, readExternal, readResolve, serialize, serializeAnnotations, setAnnotation, setAnnotation, setName, visit, visitAnnotations, writeExternal
 
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface sisc.data.NamedValue
getName, setName
 

Field Detail

bindings

protected java.util.HashMap bindings
Constructor Detail

IndexedLibraryAdapter

public IndexedLibraryAdapter()
Method Detail

construct

public abstract Value construct(java.lang.Object context,
                                int id)

define

protected void define(java.lang.String s,
                      int id)

define

protected void define(java.lang.String s,
                      java.lang.Class context,
                      int id)

getLibraryName

public java.lang.String getLibraryName()
Specified by:
getLibraryName in class NativeLibrary

getLibraryBindingNames

public Symbol[] getLibraryBindingNames(Interpreter r)
Specified by:
getLibraryBindingNames in class NativeLibrary

getBindingValue

public Value getBindingValue(Interpreter r,
                             Symbol name)
                      throws java.lang.NoSuchMethodError
Specified by:
getBindingValue in class NativeLibrary
Throws:
java.lang.NoSuchMethodError

getLibraryVersion

public float getLibraryVersion()
Specified by:
getLibraryVersion in class NativeLibrary