Package io.siddhi.annotation.processor
Class SiddhiAnnotationProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- io.siddhi.annotation.processor.SiddhiAnnotationProcessor
-
- All Implemented Interfaces:
Processor
public class SiddhiAnnotationProcessor extends AbstractProcessor
The annotation processor for siddhi extension annotation validation. This will validate @Extension, @Parameter, ReturnAttribute, @SystemParameter and @Example annotation and parameters. Note that each of the validation processor select using the super class where the extension extends or implement.annotationsClasses : holds all the supported annotations class. messager : the messager used to report errors, warnings, and other notices when validation error throws..
-
-
Field Summary
-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description SiddhiAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getSupportedAnnotationTypes()SourceVersiongetSupportedSourceVersion()voidinit(ProcessingEnvironment env)booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)voidshowBuildError(String message, Element element)-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, isInitialized
-
-
-
-
Method Detail
-
init
public void init(ProcessingEnvironment env)
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
getSupportedAnnotationTypes
public Set<String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor- Overrides:
getSupportedAnnotationTypesin classAbstractProcessor
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
-