|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.uni_paderborn.fujaba.codegen.OOGenTokenIterator
A OOGenTokenIterator is a Enumeration that is also able to traverse a token list backwards. Use the prevElement() method to do so.
| Constructor Summary | |
OOGenTokenIterator(OOGenToken current)
Creates a new iterator starting with the specified token |
|
OOGenTokenIterator(OOGenToken current,
OOGenToken stopAfter)
Constructor for class OOGenTokenIterator |
|
| Method Summary | |
java.lang.Object |
get()
Returns the current element of this enumeration. |
boolean |
hasMoreElements()
Tests if this Enumeration contains more elements. |
java.lang.Object |
nextElement()
Returns the current element of this enumeration and moves the current pointer to the next element. |
java.lang.Object |
prevElement()
Returns the current element of this enumeration and moves the current pointer to the previous element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OOGenTokenIterator(OOGenToken current)
current - the token where the iterator starts
public OOGenTokenIterator(OOGenToken current,
OOGenToken stopAfter)
current - No description providedstopAfter - No description provided| Method Detail |
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationtrue if this enumeration contains more elements; false
otherwise.public java.lang.Object nextElement()
nextElement in interface java.util.Enumerationpublic java.lang.Object prevElement()
public java.lang.Object get()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||