Class CompilationASTPathProcessor

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

    @SupportedSourceVersion(RELEASE_8)
    @SupportedAnnotationTypes("*")
    public class CompilationASTPathProcessor
    extends javax.annotation.processing.AbstractProcessor
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Aug 03, 2016
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.sun.source.util.TreePathScanner scanner  
      private com.sun.source.util.Trees trees  
      • Fields inherited from class javax.annotation.processing.AbstractProcessor

        processingEnv
    • Constructor Summary

      Constructors 
      Constructor Description
      CompilationASTPathProcessor​(com.sun.source.util.TreePathScanner scanner)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(javax.annotation.processing.ProcessingEnvironment processingEnvironment)  
      boolean process​(java.util.Set<? extends javax.lang.model.element.TypeElement> types, javax.annotation.processing.RoundEnvironment environment)  
      • Methods inherited from class javax.annotation.processing.AbstractProcessor

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

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

      • scanner

        private final com.sun.source.util.TreePathScanner scanner
      • trees

        private com.sun.source.util.Trees trees
    • Constructor Detail

      • CompilationASTPathProcessor

        public CompilationASTPathProcessor​(com.sun.source.util.TreePathScanner scanner)
    • Method Detail

      • init

        public void init​(javax.annotation.processing.ProcessingEnvironment processingEnvironment)
        Specified by:
        init in interface javax.annotation.processing.Processor
        Overrides:
        init in class javax.annotation.processing.AbstractProcessor
      • process

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