Class DirectivesFactory


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

      Constructors 
      Constructor Description
      DirectivesFactory​(javax.lang.model.util.Elements elements, javax.lang.model.util.Types types, JavaModelAnalyzerUtil javaModelAnalyzerUtil)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Directives getDirectives​(javax.lang.model.element.Element annotatedEl, java.util.Set<javax.lang.model.element.Element> orginatingElements)
      Scans the annotation hierarchy of all annotations on the given (annotated) element for the presence of a GeneratePojoBuilder annotation and returns a Directives object populated with the aggregation of the specified GeneratePojoBuilder element values.
      • Methods inherited from class java.lang.Object

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

      • DirectivesFactory

        public DirectivesFactory​(javax.lang.model.util.Elements elements,
                                 javax.lang.model.util.Types types,
                                 JavaModelAnalyzerUtil javaModelAnalyzerUtil)
    • Method Detail

      • getDirectives

        public Directives getDirectives​(javax.lang.model.element.Element annotatedEl,
                                        java.util.Set<javax.lang.model.element.Element> orginatingElements)
        Scans the annotation hierarchy of all annotations on the given (annotated) element for the presence of a GeneratePojoBuilder annotation and returns a Directives object populated with the aggregation of the specified GeneratePojoBuilder element values.

        Please note that element values can be overridden top-down. This means, that element values that appear further up in the source code will be overridden by element values further down.

        Parameters:
        annotatedEl - the annotated element
        orginatingElements - this out parameter will be filled with all elements that have (or could have) contributed to the Directives throughout the scan process.
        Returns:
        a Directives object populated with the effective annotation element values