public static final class ImmutableValueNode.Builder<T> extends Object
ImmutableValueNode.
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.
| Modifier and Type | Method and Description |
|---|---|
ImmutableValueNode<T> |
build()
Builds a new
ImmutableValueNode. |
ImmutableValueNode.Builder<T> |
from(Node instance)
Fill a builder with attribute values from the provided
de.flapdoodle.eval.core.tree.Node instance. |
ImmutableValueNode.Builder<T> |
from(ValueNode<T> instance)
Fill a builder with attribute values from the provided
de.flapdoodle.eval.core.tree.ValueNode instance. |
ImmutableValueNode.Builder<T> |
token(Token token)
Initializes the value for the
token attribute. |
ImmutableValueNode.Builder<T> |
value(Evaluated<T> value)
Initializes the value for the
value attribute. |
public final ImmutableValueNode.Builder<T> from(ValueNode<T> instance)
de.flapdoodle.eval.core.tree.ValueNode instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableValueNode.Builder<T> from(Node instance)
de.flapdoodle.eval.core.tree.Node instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableValueNode.Builder<T> token(Token token)
token attribute.token - The value for tokenthis builder for use in a chained invocationpublic final ImmutableValueNode.Builder<T> value(Evaluated<T> value)
value attribute.value - The value for valuethis builder for use in a chained invocationpublic ImmutableValueNode<T> build()
ImmutableValueNode.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.