|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.properties.IterateKnownImplementations
public class IterateKnownImplementations

Iterator over all instanciable classes of a given superclass/interface. The list of "known" implementations is obtained via the ELKI properties mechanism.
| Field Summary | |
|---|---|
(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 Summary | |
|---|---|
IterateKnownImplementations(Class<?> superclass)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Logging logger
private static final Pattern COMMENTS
Class<?> cur
int index
String[] classNames
Class<?> superclass
| Constructor Detail |
|---|
public IterateKnownImplementations(Class<?> superclass)
superclass - Superclass to find implementations for.| Method Detail |
|---|
private void findNext()
public boolean hasNext()
hasNext in interface Iterator<Class<?>>public Class<?> next()
next in interface Iterator<Class<?>>
public void remove()
throws UnsupportedOperationException
remove in interface Iterator<Class<?>>UnsupportedOperationException - Not supported.public Iterator<Class<?>> iterator()
Iterable interface for foreach statements
iterator in interface Iterable<Class<?>>
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||