Class AnnotationHierarchyUtil


  • public class AnnotationHierarchyUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationHierarchyUtil​(javax.lang.model.util.Types types)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<javax.lang.model.element.TypeElement> filterTriggeringAnnotations​(java.util.Set<? extends javax.lang.model.element.TypeElement> aAnnotations, javax.lang.model.element.TypeElement generatePojoBuilderAnnotation)
      Filters the given set of annotation elements and returns only those that are 'triggering' the generation of a pojo builder, including, of course, the GeneratePojoBuilder annotation and all custom made meta annotations that are annotated with GeneratePojoBuilder or with another meta annotation.
      • Methods inherited from class java.lang.Object

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

      • AnnotationHierarchyUtil

        public AnnotationHierarchyUtil​(javax.lang.model.util.Types types)
    • Method Detail

      • filterTriggeringAnnotations

        public java.util.Set<javax.lang.model.element.TypeElement> filterTriggeringAnnotations​(java.util.Set<? extends javax.lang.model.element.TypeElement> aAnnotations,
                                                                                               javax.lang.model.element.TypeElement generatePojoBuilderAnnotation)
        Filters the given set of annotation elements and returns only those that are 'triggering' the generation of a pojo builder, including, of course, the GeneratePojoBuilder annotation and all custom made meta annotations that are annotated with GeneratePojoBuilder or with another meta annotation.
        Parameters:
        aAnnotations - the set of annotation elements that will be filtered
        generatePojoBuilderAnnotation - the type element representing the @GeneratePojoBuilder annotation
        Returns:
        those annotations that are triggering the generation of a pojo builder