Class AnnotationProcessorImpl
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl
-
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("*") @MetaInfServices(javax.annotation.processing.Processor.class) public class AnnotationProcessorImpl extends AbstractProcessor
Creates indices ofIndexed
annotations.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description AnnotationProcessorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
execute(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
protected AnnotationMirror
findAnnotationOn(Element e, String name)
protected Elements
getElementUtils()
SourceVersion
getSupportedSourceVersion()
protected boolean
isIndexing(TypeElement ann)
Given aTypeElement
that represents the annotation class, determines whether to index this annotation.boolean
process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
-
-
-
-
Method Detail
-
getElementUtils
protected Elements getElementUtils()
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
-
execute
protected void execute(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
-
findAnnotationOn
protected AnnotationMirror findAnnotationOn(Element e, String name)
-
isIndexing
protected boolean isIndexing(TypeElement ann)
Given aTypeElement
that represents the annotation class, determines whether to index this annotation.
-
-