Class SetMultimapProperty
java.lang.Object
org.inferred.freebuilder.processor.property.PropertyCodeGenerator
org.inferred.freebuilder.processor.property.SetMultimapProperty
PropertyCodeGenerator providing fluent methods for SetMultimap properties.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.inferred.freebuilder.processor.property.PropertyCodeGenerator
PropertyCodeGenerator.Config, PropertyCodeGenerator.Initially -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeMirrorprivate final FunctionalTypeprivate final booleanprivate final Optional<TypeMirror> private final Optional<TypeMirror> private final TypeMirrorFields inherited from class org.inferred.freebuilder.processor.property.PropertyCodeGenerator
datatype, property -
Constructor Summary
ConstructorsConstructorDescriptionSetMultimapProperty(Datatype datatype, Property property, boolean overridesPutMethod, TypeMirror keyType, Optional<TypeMirror> unboxedKeyType, TypeMirror valueType, Optional<TypeMirror> unboxedValueType, FunctionalType mutatorType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssignToBuilder(SourceBuilder code, Variable builder) Adds an assignment to the field on the builder from the Value/Partial implementation.voidAdd the accessor methods for the property to the builder's source code.voidAdd the field declaration for the property to the builder's source code.private voidaddClear(SourceBuilder code) voidaddClearField(SourceBuilder code) Adds a clear call for the property given a template builder to the builder's source code.voidaddFinalFieldAssignment(SourceBuilder code, Excerpt finalField, String builder) Add the final assignment of the property to the value object's source code.private voidaddGetter(SourceBuilder code) voidaddMergeFromBuilder(SourceBuilder code, String builder) Add a merge from builder for the property to the builder's source code.voidaddMergeFromValue(SourceBuilder code, String value) Add a merge from value for the property to the builder's source code.private voidprivate voidaddMutate(SourceBuilder code) private voidaddPut(SourceBuilder code) private voidaddRemove(SourceBuilder code) private voidaddRemoveAll(SourceBuilder code) voidaddSetFromResult(SourceBuilder code, Excerpt builder, Excerpt variable) Adds a set call for the property from a function result to the builder's source code.private voidvoidAdd the field declaration for the property to the value's source code.Returns the actions taken in mergeFrom, for generating JavaDoc.Methods inherited from class org.inferred.freebuilder.processor.property.PropertyCodeGenerator
addAccessorAnnotations, addGetterAnnotations, addPartialFieldAssignment, addPutAnnotations, addReadValueFragment, addToStringCondition, addToStringValue, equals, hashCode, initialState, toString
-
Field Details
-
overridesPutMethod
private final boolean overridesPutMethod -
keyType
-
unboxedKeyType
-
valueType
-
unboxedValueType
-
mutatorType
-
-
Constructor Details
-
SetMultimapProperty
SetMultimapProperty(Datatype datatype, Property property, boolean overridesPutMethod, TypeMirror keyType, Optional<TypeMirror> unboxedKeyType, TypeMirror valueType, Optional<TypeMirror> unboxedValueType, FunctionalType mutatorType)
-
-
Method Details
-
addValueFieldDeclaration
Description copied from class:PropertyCodeGeneratorAdd the field declaration for the property to the value's source code.- Specified by:
addValueFieldDeclarationin classPropertyCodeGenerator
-
addBuilderFieldDeclaration
Description copied from class:PropertyCodeGeneratorAdd the field declaration for the property to the builder's source code.- Specified by:
addBuilderFieldDeclarationin classPropertyCodeGenerator
-
addBuilderFieldAccessors
Description copied from class:PropertyCodeGeneratorAdd the accessor methods for the property to the builder's source code.- Specified by:
addBuilderFieldAccessorsin classPropertyCodeGenerator
-
addPut
-
addSingleKeyPutAll
-
addMultimapPutAll
-
addRemove
-
addRemoveAll
-
addMutate
-
addClear
-
addGetter
-
addFinalFieldAssignment
Description copied from class:PropertyCodeGeneratorAdd the final assignment of the property to the value object's source code.- Specified by:
addFinalFieldAssignmentin classPropertyCodeGenerator
-
addAssignToBuilder
Description copied from class:PropertyCodeGeneratorAdds an assignment to the field on the builder from the Value/Partial implementation.- Specified by:
addAssignToBuilderin classPropertyCodeGenerator
-
addMergeFromValue
Description copied from class:PropertyCodeGeneratorAdd a merge from value for the property to the builder's source code.- Specified by:
addMergeFromValuein classPropertyCodeGenerator
-
addMergeFromBuilder
Description copied from class:PropertyCodeGeneratorAdd a merge from builder for the property to the builder's source code.- Specified by:
addMergeFromBuilderin classPropertyCodeGenerator
-
getMergeActions
Description copied from class:PropertyCodeGeneratorReturns the actions taken in mergeFrom, for generating JavaDoc.- Specified by:
getMergeActionsin classPropertyCodeGenerator
-
addSetFromResult
Description copied from class:PropertyCodeGeneratorAdds a set call for the property from a function result to the builder's source code.- Specified by:
addSetFromResultin classPropertyCodeGenerator
-
addClearField
Description copied from class:PropertyCodeGeneratorAdds a clear call for the property given a template builder to the builder's source code.- Specified by:
addClearFieldin classPropertyCodeGenerator
-