Package net.karneim.pojobuilder.analysis
Class DirectivesFactory
- java.lang.Object
-
- net.karneim.pojobuilder.analysis.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 DirectivesgetDirectives(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 aGeneratePojoBuilderannotation and returns aDirectivesobject populated with the aggregation of the specifiedGeneratePojoBuilderelement values.
-
-
-
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 aGeneratePojoBuilderannotation and returns aDirectivesobject populated with the aggregation of the specifiedGeneratePojoBuilderelement 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 elementorginatingElements- this out parameter will be filled with all elements that have (or could have) contributed to theDirectivesthroughout the scan process.- Returns:
- a
Directivesobject populated with the effective annotation element values
-
-