@SupportedAnnotationTypes(value="*") @SupportedSourceVersion(value=RELEASE_8) public class PrintingProcessor extends AbstractProcessor
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Class and Description |
---|---|
static class |
PrintingProcessor.PrintingElementVisitor
Used for the -Xprint option and called by Elements.printElements
|
processingEnv
Constructor and Description |
---|
PrintingProcessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
process(Set<? extends TypeElement> tes,
RoundEnvironment renv)
Processes a set of annotation types on type elements
originating from the prior round and returns whether or not
these annotation types are claimed by this processor.
|
void |
setWriter(Writer w) |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
public void setWriter(Writer w)
public boolean process(Set<? extends TypeElement> tes, RoundEnvironment renv)
AbstractProcessor
true
is returned, the annotation types are claimed and subsequent
processors will not be asked to process them; if false
is returned, the annotation types are unclaimed and subsequent
processors may be asked to process them. A processor may
always return the same boolean value or may vary the result
based on chosen criteria.
The input set will be empty if the processor supports "*"
and the root elements have no annotations. A Processor
must gracefully handle an empty set of annotations.
process
in interface Processor
process
in class AbstractProcessor
tes
- the annotation types requested to be processedrenv
- environment for information about the current and prior roundCopyright © 2015. All rights reserved.