Method Summary |
|
public boolean | addSymbol(Symbol symbol) |
public boolean | addSymbol(SymbolCollection collection) |
public void | clear() Removes all symbols from this list. |
public Object | clone() |
public boolean | contains(Symbol symbol) If the list contains a symbol. |
public boolean | contains(String name) If the list contains a symbol, given by the name of the symbol.
Parameters: name - Name of the symbol. |
public boolean | equals(Object o) Compares to another list of symbols.
Parameters: o - Another object. |
public SymbolSet | getNonterminals() Return all used non terminal symbols in this list. |
public Symbol | getSymbol(int index) Return a symbol giving by an index.
Parameters: index - Index of the symbol. |
public Symbol | getSymbol(String name) Returns a symbol from this list given by the name of the symbol.
Parameters: name - Name of the symbol. |
public int | getSymbolCount() Returns the count of symbols in the list. |
public SymbolSet | getTerminals() Return all used terminal symbols in this list. |
public int | indexOf(Symbol symbol) Return the index of a symbol.
Parameters: symbol - Symbol. |
public int | indexOf(String name) Return the index of a symbol, given by the name of the Symbol.
Parameters: name - Name of symbol. |
public boolean | isEmpty() If this list is empty. |
public void | removeSymbol(int index) Removes a symbol by an index from this list. |
public void | removeSymbol(Symbol symbol) Removes a symbol from this list. |
public void | setSymbol(int index, Symbol symbol) Replace a symbol by an index. |
public String | toString() Return a string representation of the list. |