|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jam.JamClassIterator
public class JamClassIterator
A typed Iterator on a set of JClasses. The use of JamClassIterator (as opposed to arrays or Collections of JClass) is encouraged as it can significantly reduce memory consumption when using JAM to process large numbers of java classes.
Constructor Summary | |
---|---|
JamClassIterator(JamClassLoader loader,
java.lang.String[] classes)
Constructs a new JamClassIterator |
Method Summary | |
---|---|
int |
getSize()
|
boolean |
hasNext()
Returns true if classes remain to be iterated upon. |
java.lang.Object |
next()
Returns the next class. |
JClass |
nextClass()
Returns the next class. |
void |
remove()
Not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JamClassIterator(JamClassLoader loader, java.lang.String[] classes)
loader
- JamClassLoader from which to load the classesclasses
- Array of full-qualified classnames to iterate on.
java.lang.IllegalArgumentException
- if either argument is null.Method Detail |
---|
public JClass nextClass()
java.lang.IndexOutOfBoundsException
- if there are no classes left to
iterate on.public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
java.lang.IndexOutOfBoundsException
- if there are no classes left to
iterate on.public int getSize()
public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |