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.AbstractProcessorCreates indices ofIndexedannotations.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description AnnotationProcessorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecute(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)protected javax.lang.model.element.AnnotationMirrorfindAnnotationOn(javax.lang.model.element.Element e, java.lang.String name)protected javax.lang.model.util.ElementsgetElementUtils()javax.lang.model.SourceVersiongetSupportedSourceVersion()protected booleanisIndexing(javax.lang.model.element.TypeElement ann)Given aTypeElementthat represents the annotation class, determines whether to index this annotation.booleanprocess(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:
processin interfacejavax.annotation.processing.Processor- Specified by:
processin classjavax.annotation.processing.AbstractProcessor
-
getSupportedSourceVersion
public javax.lang.model.SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin interfacejavax.annotation.processing.Processor- Overrides:
getSupportedSourceVersionin 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 aTypeElementthat represents the annotation class, determines whether to index this annotation.
-
-