|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class represents a abstract collection of symbols.
Method Summary | |
boolean |
addSymbol(Symbol symbol)
|
boolean |
addSymbol(SymbolCollection collection)
|
void |
clear()
Removes all symbols from this collection. |
boolean |
contains(java.lang.String name)
If the collection contains a symbol, given by the name of the symbol. |
boolean |
contains(Symbol symbol)
If the collection contains the symbol. |
boolean |
equals(java.lang.Object o)
Compares to another collection of symbols. |
Symbol |
getSymbol(int index)
Return a symbol giving by an index. |
Symbol |
getSymbol(java.lang.String name)
Returns a symbol from this collection given by the name of the symbol. |
int |
getSymbolCount()
Returns the count of symbols in the collection. |
int |
indexOf(java.lang.String name)
Return the index of a symbol, given by the name of the Symbol. |
int |
indexOf(Symbol symbol)
Return the index of a symbol. |
boolean |
isEmpty()
If this collection is empty. |
void |
removeSymbol(int index)
Removes a symbol by an index from this collection |
void |
removeSymbol(Symbol symbol)
Removes a symbol from this collection. |
void |
setSymbol(int index,
Symbol symbol)
Replace a symbol by an index. |
java.lang.String |
toString()
Return a string representation of the collection. |
Method Detail |
public boolean addSymbol(Symbol symbol)
public boolean addSymbol(SymbolCollection collection)
public void removeSymbol(int index)
index
- Index of the symbol.public void removeSymbol(Symbol symbol)
symbol
- Symbol, which should be removed.public void setSymbol(int index, Symbol symbol)
index
- The index, at which the symbol be inserted.symbol
- Symbol.public Symbol getSymbol(int index)
index
- Index of the symbol.
public Symbol getSymbol(java.lang.String name)
name
- Name of the symbol.
public int getSymbolCount()
public boolean isEmpty()
public int indexOf(Symbol symbol)
symbol
- Symbol.
public int indexOf(java.lang.String name)
name
- Name of symbol.
public boolean contains(Symbol symbol)
symbol
- Symbol.
public boolean contains(java.lang.String name)
name
- Name of the symbol.
public void clear()
public boolean equals(java.lang.Object o)
o
- Another object.
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |