public static final class SymbolTable.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
SymbolTable.Builder |
add(Symbol symbol)
Adds a symbol to the table to be built.
|
SymbolTable.Builder |
addAll(java.util.Collection<Symbol> symbols)
Adds all symbols in the given collection to the table.
|
SymbolTable |
build()
Builds a symbol table with all symbols added.
|
boolean |
contains(Symbol symbol)
Checks if a symbol with the same resource type and name as
symbol have been
added. |
Symbol |
get(Symbol symbol)
Returns the symbol form the table matching the provided symbol
|
SymbolTable.Builder |
tablePackage(java.lang.String tablePackage)
Sets the table package.
|
public SymbolTable.Builder add(@NonNull Symbol symbol)
symbol - the symbol to addthis for use with fluent-style notationpublic SymbolTable.Builder addAll(@NonNull java.util.Collection<Symbol> symbols)
add(Symbol) for all symbols.symbols - the symbols to addthis for use with fluent-style notationpublic SymbolTable.Builder tablePackage(@NonNull java.lang.String tablePackage)
SymbolTable description.tablePackage; - must be a valid java package namethis for use with fluent-style notationpublic boolean contains(@NonNull
Symbol symbol)
symbol have been
added.symbol - the symbol to check@Nullable public Symbol get(@NonNull Symbol symbol)
symbol - the symbol@NonNull public SymbolTable build()