Class Analyser.ConfigImpl
- java.lang.Object
-
- org.inferred.freebuilder.processor.Analyser.ConfigImpl
-
- All Implemented Interfaces:
PropertyCodeGenerator.Config
- Enclosing class:
- Analyser
private class Analyser.ConfigImpl extends java.lang.Object implements PropertyCodeGenerator.Config
-
-
Field Summary
Fields Modifier and Type Field Description private javax.lang.model.type.DeclaredTypebuilderprivate Datatypedatatypeprivate javax.lang.model.element.ExecutableElementgetterMethodprivate java.util.Set<java.lang.String>methodsInvokedInBuilderConstructorprivate Propertyproperty
-
Constructor Summary
Constructors Constructor Description ConfigImpl(javax.lang.model.type.DeclaredType builder, Datatype datatype, Property property, javax.lang.model.element.ExecutableElement getterMethod, java.util.Set<java.lang.String> methodsInvokedInBuilderConstructor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<? extends javax.lang.model.element.AnnotationMirror>getAnnotations()Returns annotations on the property requiring code generation.javax.lang.model.type.DeclaredTypegetBuilder()The user's Builder type.DatatypegetDatatype()Returns datatype about the builder being generated.javax.lang.model.util.ElementsgetElements()The compiler'sElementsimplementation.javax.annotation.processing.ProcessingEnvironmentgetEnvironment()The compiler'sProcessingEnvironmentimplementation.java.util.Set<java.lang.String>getMethodsInvokedInBuilderConstructor()A set of methods that are definitely invoked in the builder constructor.PropertygetProperty()Returns datatype about the property requiring code generation.javax.lang.model.element.ExecutableElementgetSourceElement()Returns the element this property was inferred from.javax.lang.model.util.TypesgetTypes()The compiler'sTypesimplementation.
-
-
-
Field Detail
-
builder
private final javax.lang.model.type.DeclaredType builder
-
datatype
private final Datatype datatype
-
property
private final Property property
-
getterMethod
private final javax.lang.model.element.ExecutableElement getterMethod
-
methodsInvokedInBuilderConstructor
private final java.util.Set<java.lang.String> methodsInvokedInBuilderConstructor
-
-
Method Detail
-
getSourceElement
public javax.lang.model.element.ExecutableElement getSourceElement()
Description copied from interface:PropertyCodeGenerator.ConfigReturns the element this property was inferred from.- Specified by:
getSourceElementin interfacePropertyCodeGenerator.Config
-
getBuilder
public javax.lang.model.type.DeclaredType 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
public Datatype getDatatype()
Description copied from interface:PropertyCodeGenerator.ConfigReturns datatype about the builder being generated.- Specified by:
getDatatypein interfacePropertyCodeGenerator.Config
-
getProperty
public Property getProperty()
Description copied from interface:PropertyCodeGenerator.ConfigReturns datatype about the property requiring code generation.- Specified by:
getPropertyin interfacePropertyCodeGenerator.Config
-
getAnnotations
public java.util.List<? extends javax.lang.model.element.AnnotationMirror> getAnnotations()
Description copied from interface:PropertyCodeGenerator.ConfigReturns annotations on the property requiring code generation.- Specified by:
getAnnotationsin interfacePropertyCodeGenerator.Config
-
getMethodsInvokedInBuilderConstructor
public java.util.Set<java.lang.String> 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
public javax.annotation.processing.ProcessingEnvironment getEnvironment()
Description copied from interface:PropertyCodeGenerator.ConfigThe compiler'sProcessingEnvironmentimplementation.- Specified by:
getEnvironmentin interfacePropertyCodeGenerator.Config
-
getElements
public javax.lang.model.util.Elements getElements()
Description copied from interface:PropertyCodeGenerator.ConfigThe compiler'sElementsimplementation.- Specified by:
getElementsin interfacePropertyCodeGenerator.Config
-
getTypes
public javax.lang.model.util.Types getTypes()
Description copied from interface:PropertyCodeGenerator.ConfigThe compiler'sTypesimplementation.- Specified by:
getTypesin interfacePropertyCodeGenerator.Config
-
-