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(com.android.resources.ResourceType resourceType,
java.lang.String name)
Checks if the table contains a symbol with the given resource type / name.
|
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 addpublic SymbolTable.Builder addAll(@NonNull java.util.Collection<Symbol> symbols)
add(Symbol) for all symbols.symbols - the symbols to addpublic SymbolTable.Builder tablePackage(@NonNull java.lang.String tablePackage)
SymbolTable description.tablePackage; - must be a valid java package namepublic boolean contains(@NonNull
Symbol symbol)
symbol have been
added.symbol - the symbol to checkpublic boolean contains(@NonNull
com.android.resources.ResourceType resourceType,
@NonNull
java.lang.String name)
resourceType - the resource typename - the name@Nullable public Symbol get(@NonNull Symbol symbol)
symbol - the symbol@NonNull public SymbolTable build()