public class IterateKnownImplementations extends Object implements IterableIterator<Class<?>>
Modifier and Type | Field and Description |
---|---|
(package private) String[] |
classNames
Class names array
|
private static Pattern |
COMMENTS
Pattern to detect comments
|
(package private) Class<?> |
cur
Current class = next iterator value
|
(package private) int |
index
Index within the class names array
|
private static Logging |
logger
Logger
|
(package private) Class<?> |
superclass
Super class
|
Constructor and Description |
---|
IterateKnownImplementations(Class<?> superclass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
findNext()
Find the next 'acceptable' result.
|
boolean |
hasNext()
Return if there is a next known implementation
|
Iterator<Class<?>> |
iterator()
Adapter for
Iterable interface for foreach statements |
Class<?> |
next()
Advance the iterator, returning the 'next' result
|
void |
remove()
Removals are not supported by this iterator.
|
private static final Logging logger
private static final Pattern COMMENTS
Class<?> cur
int index
String[] classNames
Class<?> superclass
public IterateKnownImplementations(Class<?> superclass)
superclass
- Superclass to find implementations for.private void findNext()
public boolean hasNext()
public Class<?> next()
public void remove() throws UnsupportedOperationException
remove
in interface Iterator<Class<?>>
UnsupportedOperationException
- Not supported.