com.sun.tools.javac.processing
Class JavacProcessingEnvironment.ServiceIterator

java.lang.Object
  extended by com.sun.tools.javac.processing.JavacProcessingEnvironment.ServiceIterator
All Implemented Interfaces:
java.util.Iterator<Processor>
Enclosing class:
JavacProcessingEnvironment

private class JavacProcessingEnvironment.ServiceIterator
extends java.lang.Object
implements java.util.Iterator<Processor>

Use a service loader appropriate for the platform to provide an iterator over annotations processors. If java.util.ServiceLoader is present use it, otherwise, use sun.misc.Service, otherwise fail if a loader is needed.


Field Summary
private  java.util.Iterator<?> iterator
           
private  Log log
           
 
Constructor Summary
JavacProcessingEnvironment.ServiceIterator(java.lang.ClassLoader classLoader, Log log)
           
 
Method Summary
 boolean hasNext()
           
 Processor next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

private java.util.Iterator<?> iterator

log

private Log log
Constructor Detail

JavacProcessingEnvironment.ServiceIterator

JavacProcessingEnvironment.ServiceIterator(java.lang.ClassLoader classLoader,
                                           Log log)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Processor>

next

public Processor next()
Specified by:
next in interface java.util.Iterator<Processor>

remove

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