checkers.util
Class AggregateChecker
java.lang.Object
javax.annotation.processing.AbstractProcessor
com.sun.source.util.AbstractTypeProcessor
checkers.util.AggregateChecker
- All Implemented Interfaces:
- Processor
- Direct Known Subclasses:
- NullnessChecker
public abstract class AggregateChecker
- extends AbstractTypeProcessor
An aggregate checker that packages multiple checkers together. The
resulting checker invokes the individual checkers together on the processed
files.
This class delegates AbstractTypeProcessor
responsibilities to each
of the checkers.
Checker writers need to subclass this class and only override
getSupportedCheckers()
to indicate the classes of the checkers
to be bundled.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggregateChecker
public AggregateChecker()
getSupportedCheckers
protected abstract Collection<Class<? extends SourceChecker>> getSupportedCheckers()
- Returns the list of supported checkers to be run together.
Subclasses need to override this method.
typeProcess
public final void typeProcess(TypeElement element,
TreePath tree)
- Specified by:
typeProcess
in class AbstractTypeProcessor
typeProcessingOver
public void typeProcessingOver()
- Overrides:
typeProcessingOver
in class AbstractTypeProcessor
init
public final void init(ProcessingEnvironment env)
- Specified by:
init
in interface Processor
- Overrides:
init
in class AbstractTypeProcessor
getSupportedOptions
public final Set<String> getSupportedOptions()
- Specified by:
getSupportedOptions
in interface Processor
- Overrides:
getSupportedOptions
in class AbstractProcessor
getSupportedAnnotationTypes
public final Set<String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypes
in interface Processor
- Overrides:
getSupportedAnnotationTypes
in class AbstractProcessor
getSupportedSourceVersion
public final SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersion
in interface Processor
- Overrides:
getSupportedSourceVersion
in class AbstractProcessor