public class JamClassIterator
extends java.lang.Object
implements java.util.Iterator
| Constructor and Description |
|---|
JamClassIterator(JamClassLoader loader,
java.lang.String[] classes)
Constructs a new JamClassIterator
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.public JClass nextClass()
java.lang.IndexOutOfBoundsException - if there are no classes left to
iterate on.public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorjava.lang.IndexOutOfBoundsException - if there are no classes left to
iterate on.public int getSize()
public void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException