| |
|
| java.lang.Object ro.infoiasi.donald.compiler.cfg.Word
Constructor Summary | |
public | Word() | public | Word(Word w) | public | Word(Symbol sym) | public | Word(Symbol sym1, Symbol sym2) | public | Word(Collection c) Constructs a new word from a collection of symbols.
The order of the symbols in the new word is the order in
witch they are returned by the collection's iterator. |
Word | public Word()(Code) | | Constructs a new empty word (labmda/epsilon)
|
Word | public Word(Word w)(Code) | | Constructs a word as a copy of the specified word w
|
Word | public Word(Symbol sym)(Code) | | Constructs a word containing only one simbol sym
|
Word | public Word(Symbol sym1, Symbol sym2)(Code) | | Constructs a word containing the symbols sym1 sym2
|
Word | public Word(Collection c)(Code) | | Constructs a new word from a collection of symbols.
The order of the symbols in the new word is the order in
witch they are returned by the collection's iterator.
|
addFirst | public void addFirst(Symbol sym)(Code) | | Adds the specified symbol at the begining of this word
|
addLast | public void addLast(Symbol sym)(Code) | | Appends the specified symbol to the end of this word
|
addWordFirst | public void addWordFirst(Word w)(Code) | | |
clear | public void clear()(Code) | | Removes all of the symbols from this word
|
contains | public boolean contains(Symbol sym)(Code) | | Returns true if this word contains the specified symbol.
|
hashCode | public int hashCode()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | Returns true if this word has no symbols - lambda.
|
iterator | public WordIterator iterator()(Code) | | Returns an iterator over the symbols in this word in proper sequence.
|
iterator | public WordIterator iterator(boolean end)(Code) | | Returns an iterator over the symbols in this word in proper sequence.
If the given argument is true the iterator will start at the end of the sequence
|
mirror | public Word mirror()(Code) | | Returnes the word obtained by reversing the
order of the simbols in this word
|
size | public int size()(Code) | | Returns the number of symbols in this word.
|
toArray | public Symbol[] toArray()(Code) | | Returns a array containing all of the
symbols in this word in proper sequence.
|
|
|
|