Top Description Fields Constructors Methods
com.amazon.ion.impl.bin

pack-priv Class Symbols

extends Object
Class Inheritance
Static Imports
com.amazon.ion.SystemSymbols.IMPORTS, .SystemSymbols.IMPORTS_SID, .SystemSymbols.ION, .SystemSymbols.ION_1_0, .SystemSymbols.ION_1_0_MAX_ID, .SystemSymbols.ION_1_0_SID, .SystemSymbols.ION_SHARED_SYMBOL_TABLE, .SystemSymbols.ION_SHARED_SYMBOL_TABLE_SID, .SystemSymbols.ION_SID, .SystemSymbols.ION_SYMBOL_TABLE, .SystemSymbols.ION_SYMBOL_TABLE_SID, .SystemSymbols.MAX_ID, .SystemSymbols.MAX_ID_SID, .SystemSymbols.NAME, .SystemSymbols.NAME_SID, .SystemSymbols.SYMBOLS, .SystemSymbols.SYMBOLS_SID, .SystemSymbols.VERSION, .SystemSymbols.VERSION_SID, java.util.Arrays.asList, .Collections.unmodifiableList, .Collections.unmodifiableMap

Utilities for dealing with SymbolToken and SymbolTable.

Field Summary

Modifier and TypeField and Description
private static SymbolTable
private static final Map<String, SymbolToken>
private static final List<SymbolToken>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SymbolToken
symbol(final String name, final int val)

Constructs a token with a non-null name and positive value.

public static Iterator<String>
symbolNameIterator(final Iterator<SymbolToken> tokenIter)

Lazy iterator over the symbol names of an iterator of symbol tokens.

public static SymbolToken
systemSymbol(final int sid)

Returns a symbol token for a system SID.

public static Collection<SymbolToken>
systemSymbols()

Returns the system symbols as a collection.

public static SymbolTable
systemSymbolTable()

Returns a representation of the system symbol table.

public static SymbolTable
unknownSharedSymbolTable(final String name, final int version, final int maxId)

Returns a substitute shared symbol table where none of the symbols are known.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SYSTEM_SYMBOL_TABLEback to summary
private static SymbolTable SYSTEM_SYMBOL_TABLE
SYSTEM_TOKEN_MAPback to summary
private static final Map<String, SymbolToken> SYSTEM_TOKEN_MAP
SYSTEM_TOKENSback to summary
private static final List<SymbolToken> SYSTEM_TOKENS

Constructor Detail

Symbolsback to summary
private Symbols()

Method Detail

symbolback to summary
public static SymbolToken symbol(final String name, final int val)

Constructs a token with a non-null name and positive value.

symbolNameIteratorback to summary
public static Iterator<String> symbolNameIterator(final Iterator<SymbolToken> tokenIter)

Lazy iterator over the symbol names of an iterator of symbol tokens.

systemSymbolback to summary
public static SymbolToken systemSymbol(final int sid)

Returns a symbol token for a system SID.

systemSymbolsback to summary
public static Collection<SymbolToken> systemSymbols()

Returns the system symbols as a collection.

systemSymbolTableback to summary
public static SymbolTable systemSymbolTable()

Returns a representation of the system symbol table.

unknownSharedSymbolTableback to summary
public static SymbolTable unknownSharedSymbolTable(final String name, final int version, final int maxId)

Returns a substitute shared symbol table where none of the symbols are known.