Class Declarations
java.lang.Object
org.inferred.freebuilder.processor.Declarations
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfreshBuilder(SourceBuilder code, Datatype datatype) Declares a fresh Builder to copy default property values from.static VariableupcastToGeneratedBuilder(SourceBuilder code, Datatype datatype, String builder) Upcasts a Builder instance to the generated superclass, to allow access to private fields.
-
Field Details
-
UPCAST_COMMENT
- See Also:
-
-
Constructor Details
-
Declarations
private Declarations()
-
-
Method Details
-
upcastToGeneratedBuilder
public static Variable upcastToGeneratedBuilder(SourceBuilder code, Datatype datatype, String builder) Upcasts a Builder instance to the generated superclass, to allow access to private fields.Reuses an existing upcast instance if one was already declared in this scope.
- Parameters:
code- theSourceBuilderto add the declaration todatatype- metadata about the user type the builder is being generated forbuilder- the Builder instance to upcast
-
freshBuilder
Declares a fresh Builder to copy default property values from.Reuses an existing fresh Builder instance if one was already declared in this scope.
-