public final class OperatorProcessor extends AbstractProcessor
Operator and generates the Ops convenience API. Please
refer to the Operator annotation for details about the API
generated for each annotated class.
Note that this processor can only be invoked once, in a single compilation run that includes
all the Operator annotated source classes. The reason is that the Ops API is an
"aggregating" API, and annotation processing does not permit modifying an already generated
class.
OperatorprocessingEnv| Constructor and Description |
|---|
OperatorProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getSupportedAnnotationTypes() |
SourceVersion |
getSupportedSourceVersion() |
void |
init(ProcessingEnvironment processingEnv) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
getCompletions, getSupportedOptions, isInitializedpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorpublic void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorpublic Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface ProcessorgetSupportedAnnotationTypes in class AbstractProcessorCopyright © 2019. All rights reserved.