Package org.kohsuke.args4j.apt
Class AnnotationProcessorImpl
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- org.kohsuke.args4j.apt.AnnotationProcessorImpl
-
- All Implemented Interfaces:
javax.annotation.processing.Processor
public class AnnotationProcessorImpl extends javax.annotation.processing.AbstractProcessor
AnnotationProcessor
to be invoked by javac. This class receives options from the Main method through system properties (ouch!).
-
-
Constructor Summary
Constructors Constructor Description AnnotationProcessorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private AnnotationVisitor
createAnnotationVisitor(javax.lang.model.element.TypeElement te)
java.util.Set<java.lang.String>
getSupportedAnnotationTypes()
javax.lang.model.SourceVersion
getSupportedSourceVersion()
private java.lang.String
getUsage(Option o)
void
init(javax.annotation.processing.ProcessingEnvironment processingEnv)
private boolean
isOptionHidden(java.lang.String usage)
boolean
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)
private void
scan(javax.lang.model.element.Element f, AnnotationVisitor visitor)
private void
scan(javax.lang.model.element.TypeElement decl, AnnotationVisitor visitor)
-
-
-
Method Detail
-
init
public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
- Specified by:
init
in interfacejavax.annotation.processing.Processor
- Overrides:
init
in classjavax.annotation.processing.AbstractProcessor
-
getSupportedAnnotationTypes
public java.util.Set<java.lang.String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypes
in interfacejavax.annotation.processing.Processor
- Overrides:
getSupportedAnnotationTypes
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
-
createAnnotationVisitor
private AnnotationVisitor createAnnotationVisitor(javax.lang.model.element.TypeElement te) throws java.io.IOException
- Throws:
java.io.IOException
-
scan
private void scan(javax.lang.model.element.TypeElement decl, AnnotationVisitor visitor)
-
scan
private void scan(javax.lang.model.element.Element f, AnnotationVisitor visitor)
-
isOptionHidden
private boolean isOptionHidden(java.lang.String usage)
-
getUsage
private java.lang.String getUsage(Option o)
-
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
-
-