Class OptionAnnotationProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.sosy_lab.common.configuration.OptionAnnotationProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("org.sosy_lab.common.configuration.*")
@AutoService(javax.annotation.processing.Processor.class)
public class OptionAnnotationProcessor
extends AbstractProcessor
Annotation processor for checking constraints on
Option and Options annotations.
The compiler uses this class during compilation, and we can report compiler errors and warnings.
When reporting warnings, it honors the SuppressWarnings annotation either with a value
of "all" or "options".
This class needs to be public and have a public no-arg constructor. However, it is not intended for clients usage.
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterable<? extends Completion>getCompletions(@Nullable Element element, @Nullable AnnotationMirror annotation, @Nullable ExecutableElement field, @Nullable String userText) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
-
Constructor Details
-
OptionAnnotationProcessor
public OptionAnnotationProcessor()
-
-
Method Details
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
getCompletions
public Iterable<? extends Completion> getCompletions(@Nullable Element element, @Nullable AnnotationMirror annotation, @Nullable ExecutableElement field, @Nullable String userText) - Specified by:
getCompletionsin interfaceProcessor- Overrides:
getCompletionsin classAbstractProcessor
-