public class LibraryBuilder extends BerEncoding implements ExpressionVisitor
Constructor and Description |
---|
LibraryBuilder() |
LibraryBuilder(AppContext ctx) |
LibraryBuilder(AppContext ctx,
boolean iae) |
Modifier and Type | Method and Description |
---|---|
int |
add(Expression val)
Add a shared data structure
|
int |
add(Symbol name,
Expression val)
Add an entry point.
|
Library |
buildLibrary(java.lang.String name,
java.io.OutputStream out) |
int |
get(Expression val) |
void |
setAppContext(AppContext ctx) |
boolean |
visit(ExpressionVisitee e) |
readBer, readBerLong, readBerShort, writeBer
public LibraryBuilder()
public LibraryBuilder(AppContext ctx)
public LibraryBuilder(AppContext ctx, boolean iae)
public void setAppContext(AppContext ctx)
public int add(Symbol name, Expression val)
name
- the name of the entry pointval
- the value of the entry pointpublic int add(Expression val)
val
- the shared data structurepublic int get(Expression val)
public Library buildLibrary(java.lang.String name, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public boolean visit(ExpressionVisitee e)
visit
in interface ExpressionVisitor