|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.japi.lang.SuperClassIterator
public class SuperClassIterator
An Iterator for iterating through the superclasses (subclasses to superclasses) of a class.
Note: The supplied class is included in iteration. If you want to omit it, you'll have to invoke getSuperclass() once, e.g. use new SuperClassIterator(clazz.getSuperClass()) instead of new SuperClassIterator(clazz).
| Constructor Summary | |
|---|---|
SuperClassIterator(Class<?> clazz)
Create a SuperClassIterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
Iterator<Class<?>> |
iterator()
Returns an iterator over a set of elements of type T. |
Class<?> |
next()
Returns the next element in the iteration. |
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SuperClassIterator(@Nullable
Class<?> clazz)
clazz - Class to create Iterator for| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<Class<?>>public Class<?> next()
Iterator.hasNext() method returns false will
return each element in the underlying collection exactly once.
next in interface Iterator<Class<?>>public void remove()
remove in interface Iterator<Class<?>>public Iterator<Class<?>> iterator()
iterator in interface Iterable<Class<?>>
|
JAPI Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||