Class Analyser.ConfigImpl
java.lang.Object
org.inferred.freebuilder.processor.Analyser.ConfigImpl
- All Implemented Interfaces:
PropertyCodeGenerator.Config
- Enclosing class:
Analyser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DeclaredTypeprivate final Datatypeprivate final ExecutableElementprivate final Property -
Constructor Summary
ConstructorsConstructorDescriptionConfigImpl(DeclaredType builder, Datatype datatype, Property property, ExecutableElement getterMethod, Set<String> methodsInvokedInBuilderConstructor) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends AnnotationMirror> Returns annotations on the property requiring code generation.The user's Builder type.Returns datatype about the builder being generated.The compiler'sElementsimplementation.The compiler'sProcessingEnvironmentimplementation.A set of methods that are definitely invoked in the builder constructor.Returns datatype about the property requiring code generation.Returns the element this property was inferred from.getTypes()The compiler'sTypesimplementation.
-
Field Details
-
builder
-
datatype
-
property
-
getterMethod
-
methodsInvokedInBuilderConstructor
-
-
Constructor Details
-
ConfigImpl
ConfigImpl(DeclaredType builder, Datatype datatype, Property property, ExecutableElement getterMethod, Set<String> methodsInvokedInBuilderConstructor)
-
-
Method Details
-
getSourceElement
Description copied from interface:PropertyCodeGenerator.ConfigReturns the element this property was inferred from.- Specified by:
getSourceElementin interfacePropertyCodeGenerator.Config
-
getBuilder
Description copied from interface:PropertyCodeGenerator.ConfigThe user's Builder type. If generic, will be parameterized with the type variables of the value type, for simpler type comparisons.- Specified by:
getBuilderin interfacePropertyCodeGenerator.Config
-
getDatatype
Description copied from interface:PropertyCodeGenerator.ConfigReturns datatype about the builder being generated.- Specified by:
getDatatypein interfacePropertyCodeGenerator.Config
-
getProperty
Description copied from interface:PropertyCodeGenerator.ConfigReturns datatype about the property requiring code generation.- Specified by:
getPropertyin interfacePropertyCodeGenerator.Config
-
getAnnotations
Description copied from interface:PropertyCodeGenerator.ConfigReturns annotations on the property requiring code generation.- Specified by:
getAnnotationsin interfacePropertyCodeGenerator.Config
-
getMethodsInvokedInBuilderConstructor
Description copied from interface:PropertyCodeGenerator.ConfigA 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.- Specified by:
getMethodsInvokedInBuilderConstructorin interfacePropertyCodeGenerator.Config
-
getEnvironment
Description copied from interface:PropertyCodeGenerator.ConfigThe compiler'sProcessingEnvironmentimplementation.- Specified by:
getEnvironmentin interfacePropertyCodeGenerator.Config
-
getElements
Description copied from interface:PropertyCodeGenerator.ConfigThe compiler'sElementsimplementation.- Specified by:
getElementsin interfacePropertyCodeGenerator.Config
-
getTypes
Description copied from interface:PropertyCodeGenerator.ConfigThe compiler'sTypesimplementation.- Specified by:
getTypesin interfacePropertyCodeGenerator.Config
-