Class Datatype_Builder.Value
java.lang.Object
org.inferred.freebuilder.processor.Datatype
org.inferred.freebuilder.processor.Datatype_Builder.Rebuildable
org.inferred.freebuilder.processor.Datatype_Builder.Value
- Enclosing class:
Datatype_Builder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.inferred.freebuilder.processor.Datatype
Datatype.Builder, Datatype.StandardMethod, Datatype.UnderrideLevel, Datatype.Visibility -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Typeprivate final BuilderFactoryprivate final booleanprivate final NameAndVisibilityprivate final NameAndVisibilityprivate final NameAndVisibilityprivate final booleanprivate final TypeClassprivate final com.google.common.collect.ImmutableList<Excerpt> private final booleanprivate final booleanprivate final NameAndVisibilityprivate final NameAndVisibilityprivate final com.google.common.collect.ImmutableList<Excerpt> private final TypeClassprivate final TypeClassprivate final TypeClassprivate final com.google.common.collect.ImmutableMap<Datatype.StandardMethod, Datatype.UnderrideLevel> private final TypeClassprivate final TypeClassprivate final com.google.common.collect.ImmutableList<Excerpt> private final Datatype.Visibility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the builder type that users will see.Returns the builder factory mechanism the user has exposed, if any.Returns the build method to be generated.Returns the partial build method to be generated.Returns the clear method to be generated.Returns the builder class that should be generated.com.google.common.collect.ImmutableList<Excerpt> Returns a list of annotations that should be applied to the generated builder class.booleanReturns whether the value type has a toBuilder method that needs to be generated.Returns the mergeFrom(Builder) method to be generated.Returns the mergeFrom(Value) method to be generated.com.google.common.collect.ImmutableList<Excerpt> Returns a list of nested classes that should be added to the generated builder class.Returns the partial value class that should be generated.Returns the Property enum that may be generated.Returns the Rebuildable interface that should be generated, if any.com.google.common.collect.ImmutableMap<Datatype.StandardMethod, Datatype.UnderrideLevel> getType()Returns the type itself.Returns the value class that should be generated.com.google.common.collect.ImmutableList<Excerpt> Returns a list of annotations that should be applied to the generated value class.Returns the visibility of the generated value class.inthashCode()booleanReturns whether the builder type should be serializable.booleanWhether there is a package-visible, no-args constructor so we can subclass the Builder.booleanReturns true if the type is an interface.toString()Methods inherited from class org.inferred.freebuilder.processor.Datatype
standardMethodUnderride
-
Field Details
-
type
-
interfaceType
private final boolean interfaceType -
builder
-
extensible
private final boolean extensible -
builderFactory
-
generatedBuilder
-
valueType
-
partialType
-
rebuildableType
-
propertyEnum
-
standardMethodUnderrides
private final com.google.common.collect.ImmutableMap<Datatype.StandardMethod,Datatype.UnderrideLevel> standardMethodUnderrides -
builderSerializable
private final boolean builderSerializable -
hasToBuilderMethod
private final boolean hasToBuilderMethod -
buildMethod
-
buildPartialMethod
-
clearMethod
-
mergeFromBuilderMethod
-
mergeFromValueMethod
-
generatedBuilderAnnotations
-
valueTypeAnnotations
-
valueTypeVisibility
-
nestedClasses
-
-
Constructor Details
-
Value
-
-
Method Details
-
getType
Description copied from class:DatatypeReturns the type itself. -
isInterfaceType
public boolean isInterfaceType()Description copied from class:DatatypeReturns true if the type is an interface.- Specified by:
isInterfaceTypein classDatatype
-
getBuilder
Description copied from class:DatatypeReturns the builder type that users will see.- Specified by:
getBuilderin classDatatype
-
isExtensible
public boolean isExtensible()Description copied from class:DatatypeWhether there is a package-visible, no-args constructor so we can subclass the Builder.- Specified by:
isExtensiblein classDatatype
-
getBuilderFactory
Description copied from class:DatatypeReturns the builder factory mechanism the user has exposed, if any.- Specified by:
getBuilderFactoryin classDatatype
-
getGeneratedBuilder
Description copied from class:DatatypeReturns the builder class that should be generated.- Specified by:
getGeneratedBuilderin classDatatype
-
getValueType
Description copied from class:DatatypeReturns the value class that should be generated.- Specified by:
getValueTypein classDatatype
-
getPartialType
Description copied from class:DatatypeReturns the partial value class that should be generated.- Specified by:
getPartialTypein classDatatype
-
getRebuildableType
Description copied from class:DatatypeReturns the Rebuildable interface that should be generated, if any.- Specified by:
getRebuildableTypein classDatatype
-
getPropertyEnum
Description copied from class:DatatypeReturns the Property enum that may be generated.- Specified by:
getPropertyEnumin classDatatype
-
getStandardMethodUnderrides
public com.google.common.collect.ImmutableMap<Datatype.StandardMethod,Datatype.UnderrideLevel> getStandardMethodUnderrides()- Specified by:
getStandardMethodUnderridesin classDatatype
-
isBuilderSerializable
public boolean isBuilderSerializable()Description copied from class:DatatypeReturns whether the builder type should be serializable.- Specified by:
isBuilderSerializablein classDatatype
-
getHasToBuilderMethod
public boolean getHasToBuilderMethod()Description copied from class:DatatypeReturns whether the value type has a toBuilder method that needs to be generated.- Specified by:
getHasToBuilderMethodin classDatatype
-
getBuildMethod
Description copied from class:DatatypeReturns the build method to be generated.- Specified by:
getBuildMethodin classDatatype
-
getBuildPartialMethod
Description copied from class:DatatypeReturns the partial build method to be generated.- Specified by:
getBuildPartialMethodin classDatatype
-
getClearMethod
Description copied from class:DatatypeReturns the clear method to be generated.- Specified by:
getClearMethodin classDatatype
-
getMergeFromBuilderMethod
Description copied from class:DatatypeReturns the mergeFrom(Builder) method to be generated.- Specified by:
getMergeFromBuilderMethodin classDatatype
-
getMergeFromValueMethod
Description copied from class:DatatypeReturns the mergeFrom(Value) method to be generated.- Specified by:
getMergeFromValueMethodin classDatatype
-
getGeneratedBuilderAnnotations
Description copied from class:DatatypeReturns a list of annotations that should be applied to the generated builder class.- Specified by:
getGeneratedBuilderAnnotationsin classDatatype
-
getValueTypeAnnotations
Description copied from class:DatatypeReturns a list of annotations that should be applied to the generated value class.- Specified by:
getValueTypeAnnotationsin classDatatype
-
getValueTypeVisibility
Description copied from class:DatatypeReturns the visibility of the generated value class.- Specified by:
getValueTypeVisibilityin classDatatype
-
getNestedClasses
Description copied from class:DatatypeReturns a list of nested classes that should be added to the generated builder class.- Specified by:
getNestedClassesin classDatatype
-
toBuilder
- Specified by:
toBuilderin classDatatype_Builder.Rebuildable
-
equals
-
hashCode
public int hashCode() -
toString
-