|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SymbolCollection
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 |
---|
boolean addSymbol(Symbol symbol)
boolean addSymbol(SymbolCollection collection)
void removeSymbol(int index)
index
- Index of the symbol.void removeSymbol(Symbol symbol)
symbol
- Symbol, which should be removed.void setSymbol(int index, Symbol symbol)
index
- The index, at which the symbol be inserted.symbol
- Symbol.Symbol getSymbol(int index)
index
- Index of the symbol.
Symbol getSymbol(java.lang.String name)
name
- Name of the symbol.
int getSymbolCount()
boolean isEmpty()
int indexOf(Symbol symbol)
symbol
- Symbol.
int indexOf(java.lang.String name)
name
- Name of symbol.
boolean contains(Symbol symbol)
symbol
- Symbol.
boolean contains(java.lang.String name)
name
- Name of the symbol.
void clear()
boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Another object.
java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |