Interface PropertyCodeGenerator.Config

All Known Implementing Classes:
Analyser.ConfigImpl
Enclosing class:
PropertyCodeGenerator

public static interface PropertyCodeGenerator.Config
Data available to PropertyCodeGenerator.Factory instances when creating a PropertyCodeGenerator.
  • Method Details

    • getSourceElement

      ExecutableElement getSourceElement()
      Returns the element this property was inferred from.
    • getDatatype

      Datatype getDatatype()
      Returns datatype about the builder being generated.
    • getProperty

      Property getProperty()
      Returns datatype about the property requiring code generation.
    • getAnnotations

      List<? extends AnnotationMirror> getAnnotations()
      Returns annotations on the property requiring code generation.
    • getBuilder

      DeclaredType getBuilder()
      The user's Builder type. If generic, will be parameterized with the type variables of the value type, for simpler type comparisons.
    • getMethodsInvokedInBuilderConstructor

      Set<String> getMethodsInvokedInBuilderConstructor()
      A set of methods that are definitely invoked in the builder constructor. This may have false negatives (e.g. if method introspection has not been implemented for the current compiler), so must only be used for making optimizations.
    • getEnvironment

      ProcessingEnvironment getEnvironment()
      The compiler's ProcessingEnvironment implementation.
    • getElements

      Elements getElements()
      The compiler's Elements implementation.
    • getTypes

      Types getTypes()
      The compiler's Types implementation.