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 onOption
andOptions
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 Constructor Description OptionAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<? extends Completion>
getCompletions(@Nullable Element element, @Nullable AnnotationMirror annotation, @Nullable ExecutableElement field, @Nullable String userText)
SourceVersion
getSupportedSourceVersion()
boolean
process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
-
-
-
-
Method Detail
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-
getCompletions
public Iterable<? extends Completion> getCompletions(@Nullable Element element, @Nullable AnnotationMirror annotation, @Nullable ExecutableElement field, @Nullable String userText)
- Specified by:
getCompletions
in interfaceProcessor
- Overrides:
getCompletions
in classAbstractProcessor
-
-