|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.freehep.util.parameterdatabase.ClassIterator
This iterator iterates up the class hierarchy. The first element returned is always the initial defining object (which can also be a class). Each subsequent element returned is the superclass of the previous one; if the previous element was not a Class, then that object's Class is returned.
| Field Summary | |
protected Object |
current
The reference to the object which will be returned by the next call to next(). |
protected Object |
root
This is the initial root object which starts the iteration. |
| Constructor Summary | |
ClassIterator(Object start)
Constructor requires an object on which to start the iteration. |
|
| Method Summary | |
boolean |
hasNext()
|
Object |
next()
|
void |
remove()
The remove() method is not supported by this iterator. |
void |
reset()
This resets the iterator to the saved starting object. |
void |
reset(Object start)
This resets the iterator to the given starting object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Object root
protected Object current
| Constructor Detail |
public ClassIterator(Object start)
| Method Detail |
public void reset(Object start)
public void reset()
public boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface Iteratorpublic void remove()
remove in interface Iterator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||