public abstract class AggregateChecker extends AbstractTypeProcessor
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.processingEnv
Constructor and Description |
---|
AggregateChecker() |
Modifier and Type | Method and Description |
---|---|
Set<@ReadOnly String> |
getSupportedAnnotationTypes() |
protected abstract Collection<Class<? extends SourceChecker>> |
getSupportedCheckers()
Returns the list of supported checkers to be run together.
|
Set<@ReadOnly String> |
getSupportedOptions() |
SourceVersion |
getSupportedSourceVersion() |
void |
init(ProcessingEnvironment env) |
void |
typeProcess(TypeElement element,
@Nullable TreePath tree) |
void |
typeProcessingOver() |
process
getCompletions, isInitialized, toString
protected abstract Collection<Class<? extends SourceChecker>> getSupportedCheckers()
public final void typeProcess(TypeElement element, @Nullable TreePath tree)
typeProcess
in class AbstractTypeProcessor
public void typeProcessingOver()
typeProcessingOver
in class AbstractTypeProcessor
public final void init(ProcessingEnvironment env)
init
in interface Processor
init
in class AbstractTypeProcessor
public final Set<@ReadOnly String> getSupportedOptions()
getSupportedOptions
in interface Processor
getSupportedOptions
in class AbstractProcessor
public final Set<@ReadOnly String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface Processor
getSupportedAnnotationTypes
in class AbstractProcessor
public final SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor