org.jcon.data
Class ClassGenealogyIterator

java.lang.Object
  extended by org.jcon.data.ClassGenealogyIterator
All Implemented Interfaces:
java.util.Iterator

public class ClassGenealogyIterator
extends java.lang.Object
implements java.util.Iterator

An enumeration of all superclasses and all interfaces, superinterfaces, etc. for a given class. Breadth first traversal.


Constructor Summary
ClassGenealogyIterator(java.lang.Class victim)
          Create a new ClassGenealogyIterator for a class.
 
Method Summary
 boolean hasNext()
          True if enumeration has more elements.
static void main(java.lang.String[] args)
          Test main.
 java.lang.Object next()
          Returns next element in series.
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassGenealogyIterator

public ClassGenealogyIterator(java.lang.Class victim)
Create a new ClassGenealogyIterator for a class.

Method Detail

hasNext

public boolean hasNext()
True if enumeration has more elements.

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Returns next element in series.

Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

main

public static void main(java.lang.String[] args)
Test main.