sisc.ser
Class LibraryBuilder
java.lang.Object
sisc.ser.BerEncoding
sisc.ser.LibraryBuilder
- All Implemented Interfaces:
- ExpressionVisitor
public class LibraryBuilder
- extends BerEncoding
- implements ExpressionVisitor
Keeps track of entry points - points where serialization begins.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LibraryBuilder
public LibraryBuilder()
LibraryBuilder
public LibraryBuilder(AppContext ctx)
LibraryBuilder
public LibraryBuilder(AppContext ctx,
boolean iae)
setAppContext
public void setAppContext(AppContext ctx)
add
public int add(Symbol name,
Expression val)
- Add an entry point.
- Parameters:
name
- the name of the entry pointval
- the value of the entry point
- Returns:
- the index of the new (or existing) entry point
add
public int add(Expression val)
- Add a shared data structure
- Parameters:
val
- the shared data structure
- Returns:
- the index of the new (or existing) shared data structure
get
public int get(Expression val)
buildLibrary
public Library buildLibrary(java.lang.String name,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
visit
public boolean visit(ExpressionVisitee e)
- Specified by:
visit
in interface ExpressionVisitor