Class AnnotationProcessorImpl

  • All Implemented Interfaces:
    javax.annotation.processing.Processor

    @SupportedAnnotationTypes("org.kohsuke.MetaInfServices")
    public class AnnotationProcessorImpl
    extends javax.annotation.processing.AbstractProcessor
    • Field Summary

      • Fields inherited from class javax.annotation.processing.AbstractProcessor

        processingEnv
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void error​(javax.lang.model.element.Element source, java.lang.String msg)  
      private java.util.Collection<javax.lang.model.element.TypeElement> getContracts​(javax.lang.model.element.TypeElement type, MetaInfServices a)  
      javax.lang.model.SourceVersion getSupportedSourceVersion()  
      private boolean isObject​(javax.lang.model.type.TypeMirror t)  
      boolean process​(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)  
      • Methods inherited from class javax.annotation.processing.AbstractProcessor

        getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotationProcessorImpl

        public AnnotationProcessorImpl()
    • Method Detail

      • getSupportedSourceVersion

        public javax.lang.model.SourceVersion getSupportedSourceVersion()
        Specified by:
        getSupportedSourceVersion in interface javax.annotation.processing.Processor
        Overrides:
        getSupportedSourceVersion in class javax.annotation.processing.AbstractProcessor
      • process

        public boolean process​(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
                               javax.annotation.processing.RoundEnvironment roundEnv)
        Specified by:
        process in interface javax.annotation.processing.Processor
        Specified by:
        process in class javax.annotation.processing.AbstractProcessor
      • getContracts

        private java.util.Collection<javax.lang.model.element.TypeElement> getContracts​(javax.lang.model.element.TypeElement type,
                                                                                        MetaInfServices a)
      • isObject

        private boolean isObject​(javax.lang.model.type.TypeMirror t)
      • error

        private void error​(javax.lang.model.element.Element source,
                           java.lang.String msg)