SymbolTable.
Any instance will have at least one of the two properties defined.
Warning
This interface should not be implemented or extended by code outside of this library.
| Modifier and Type | Field and Description |
|---|---|
| public static final SymbolToken[] | EMPTY_ARRAY
A zero-length array. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the text of the symbol, not null.Gets the text of this symbol, throwing an exception if its unknown. |
| public int | Returns: the symbol ID (sid) of this symbol, orSymbolTable#UNKNOWN_SYMBOL_ID if the sid is unknown.Gets the ID of this symbol token. |
| public String | Returns: the text of this symbol, or null if the text is unknown.Gets the text of this symbol. |
| EMPTY_ARRAY | back to summary |
|---|---|
| public static final SymbolToken[] EMPTY_ARRAY A zero-length array. | |
| assumeText | back to summary |
|---|---|
| public String assumeText() Gets the text of this symbol, throwing an exception if its unknown.
| |
| getSid | back to summary |
|---|---|
| public int getSid() Gets the ID of this symbol token.
If no ID has yet been assigned (as may be the case when processing Ion
text-formatted data), this method returns
| |
| getText | back to summary |
|---|---|
| public String getText() Gets the text of this symbol.
If the text is not known (usually due to a shared symbol table being
unavailable) then this method returns null.
In such cases
| |