Package io.dialob.rule.parser.api
Class ImmutableRuleExpressionCompilerError.Builder
- java.lang.Object
-
- io.dialob.rule.parser.api.ImmutableRuleExpressionCompilerError.Builder
-
- Enclosing class:
- ImmutableRuleExpressionCompilerError
@NotThreadSafe public static final class ImmutableRuleExpressionCompilerError.Builder extends Object
Builds instances of typeImmutableRuleExpressionCompilerError. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableRuleExpressionCompilerError.Builderargs(Object[] args)Initializes the optional valueargsto args.ImmutableRuleExpressionCompilerError.Builderargs(Optional<? extends Object[]> args)Initializes the optional valueargsto args.ImmutableRuleExpressionCompilerErrorbuild()Builds a newImmutableRuleExpressionCompilerError.ImmutableRuleExpressionCompilerError.BuildererrorCode(String errorCode)Initializes the value for theerrorCodeattribute.ImmutableRuleExpressionCompilerError.Builderfrom(RuleExpressionCompilerError instance)Fill a builder with attribute values from the providedRuleExpressionCompilerErrorinstance.ImmutableRuleExpressionCompilerError.Builderspan(Span span)Initializes the value for thespanattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableRuleExpressionCompilerError.Builder from(RuleExpressionCompilerError instance)
Fill a builder with attribute values from the providedRuleExpressionCompilerErrorinstance. 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
-
errorCode
@CanIgnoreReturnValue public final ImmutableRuleExpressionCompilerError.Builder errorCode(String errorCode)
Initializes the value for theerrorCodeattribute.- Parameters:
errorCode- The value for errorCode- Returns:
thisbuilder for use in a chained invocation
-
args
@CanIgnoreReturnValue public final ImmutableRuleExpressionCompilerError.Builder args(Object[] args)
Initializes the optional valueargsto args.- Parameters:
args- The value for args- Returns:
thisbuilder for chained invocation
-
args
@CanIgnoreReturnValue public final ImmutableRuleExpressionCompilerError.Builder args(Optional<? extends Object[]> args)
Initializes the optional valueargsto args.- Parameters:
args- The value for args- Returns:
thisbuilder for use in a chained invocation
-
span
@CanIgnoreReturnValue public final ImmutableRuleExpressionCompilerError.Builder span(Span span)
Initializes the value for thespanattribute.If not set, this attribute will have a default value as returned by the initializer of
span.- Parameters:
span- The value for span- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableRuleExpressionCompilerError build()
Builds a newImmutableRuleExpressionCompilerError.- Returns:
- An immutable instance of RuleExpressionCompilerError
- Throws:
IllegalStateException- if any required attributes are missing
-
-