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