Class ImmutableTrees.TextLine.Builder
java.lang.Object
org.immutables.generator.processor.ImmutableTrees.TextLine.Builder
- Enclosing class:
ImmutableTrees.TextLine
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Trees.TextFragmentprivate static final longprivate longprivate booleanprivate static final longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newTextLine.private Stringfragment(Trees.TextFragment fragment) Initializes the value for thefragmentattribute.from(Trees.TextLine instance) Fill a builder with attribute values from the providedTextLineinstance.newline(boolean newline) Initializes the value for thenewlineattribute.private boolean
-
Field Details
-
INIT_BIT_FRAGMENT
private static final long INIT_BIT_FRAGMENT- See Also:
-
OPT_BIT_NEWLINE
private static final long OPT_BIT_NEWLINE- See Also:
-
initBits
private long initBits -
optBits
private long optBits -
fragment
-
newline
private boolean newline
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
from
Fill a builder with attribute values from the providedTextLineinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
fragment
Initializes the value for thefragmentattribute.- Parameters:
fragment- The value for fragment- Returns:
thisbuilder for use in a chained invocation
-
newline
Initializes the value for thenewlineattribute.If not set, this attribute will have a default value as returned by the initializer of
newline.- Parameters:
newline- The value for newline- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newTextLine.- Returns:
- An immutable instance of TextLine
- Throws:
IllegalStateException- if any required attributes are missing
-
newlineIsSet
private boolean newlineIsSet() -
formatRequiredAttributesMessage
-