Class ImmutableTrees.AssignGenerator.Builder
java.lang.Object
org.immutables.generator.processor.ImmutableTrees.AssignGenerator.Builder
- Enclosing class:
ImmutableTrees.AssignGenerator
Builds instances of type
AssignGenerator.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Trees.ValueDeclarationprivate Trees.Expressionprivate static final longprivate static final longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newAssignGenerator.declaration(Trees.ValueDeclaration declaration) Initializes the value for thedeclarationattribute.private Stringfrom(Trees.Expression from) Initializes the value for thefromattribute.
-
Field Details
-
INIT_BIT_DECLARATION
private static final long INIT_BIT_DECLARATION- See Also:
-
INIT_BIT_FROM
private static final long INIT_BIT_FROM- See Also:
-
initBits
private long initBits -
declaration
-
from
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
declaration
Initializes the value for thedeclarationattribute.- Parameters:
declaration- The value for declaration- Returns:
thisbuilder for use in a chained invocation
-
from
Initializes the value for thefromattribute.- Parameters:
from- The value for from- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newAssignGenerator.- Returns:
- An immutable instance of AssignGenerator
- Throws:
IllegalStateException- if any required attributes are missing
-
formatRequiredAttributesMessage
-