SymbolTable.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private IonStruct | image
Memoized result of |
| private final SymbolTable[] | |
| private final SymbolTable |
| Access | Constructor and Description |
|---|---|
| pack-priv | SymbolTableStructCache(SymbolTable
the SymbolTable to represent as an IonStruct. symbolTable, SymbolTable[] the symbol table's imported shared symbol tables. importedTables, IonStruct the IonStruct representation, if available. If null, an IonStruct will be created lazily. image)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public IonStruct | Returns: an IonStruct representing the symbol table.the factory)ValueFactory from which to construct the IonStruct.Returns the IonStruct representation of the symbol table. |
| public boolean | Returns: true if an IonStruct has already been created for the symbol table; otherwise, false.
|
| private void | makeIonRepresentation(ValueFactory
the factory)ValueFactory from which to construct the IonStruct.Create a new IonStruct representation of the symbol table. |
| firstLocalSid | back to summary |
|---|---|
| private final int firstLocalSid | |
| image | back to summary |
|---|---|
| private IonStruct image Memoized result of | |
| importedTables | back to summary |
|---|---|
| private final SymbolTable[] importedTables | |
| symbolTable | back to summary |
|---|---|
| private final SymbolTable symbolTable | |
| SymbolTableStructCache | back to summary |
|---|---|
pack-priv SymbolTableStructCache(SymbolTable symbolTable, SymbolTable[] importedTables, IonStruct image)
| |
| addSymbol | back to summary |
|---|---|
| pack-priv void addSymbol(String symbolName, int sid) Adds a new symbol table with the given symbol ID to the IonStruct's 'symbols' list.
| |
| getIonRepresentation | back to summary |
|---|---|
| public IonStruct getIonRepresentation(ValueFactory factory) Returns the IonStruct representation of the symbol table. Creates and stores a new IonStruct on the first invocation.
| |
| hasStruct | back to summary |
|---|---|
public boolean hasStruct()
| |
| makeIonRepresentation | back to summary |
|---|---|
| private void makeIonRepresentation(ValueFactory factory) Create a new IonStruct representation of the symbol table.
| |