Class ImmutableFunctionCallOperator.Builder
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableFunctionCallOperator.Builder
- Enclosing class:
ImmutableFunctionCallOperator
@Generated(from="FunctionCallOperator",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableFunctionCallOperator.Builder
extends Object
Builds instances of type
ImmutableFunctionCallOperator.
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.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllArgs(Iterable<? extends Expression> elements) Adds elements toargslist.addArgs(Expression element) Adds one element toargslist.addArgs(Expression... elements) Adds elements toargslist.args(Iterable<? extends Expression> elements) Sets or replaces all elements forargslist.build()Builds a newImmutableFunctionCallOperator.from(FunctionCallOperator instance) Fill a builder with attribute values from the providedio.dialob.session.engine.program.expr.arith.FunctionCallOperatorinstance.from(Expression instance) Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.Expressioninstance.functionName(String functionName) Initializes the value for thefunctionNameattribute.Initializes the value for thevalueTypeattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableFunctionCallOperator.Builder from(FunctionCallOperator instance) Fill a builder with attribute values from the providedio.dialob.session.engine.program.expr.arith.FunctionCallOperatorinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.dialob.session.engine.program.model.Expressioninstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
valueType
@CanIgnoreReturnValue public final ImmutableFunctionCallOperator.Builder valueType(ValueType valueType) Initializes the value for thevalueTypeattribute.- Parameters:
valueType- The value for valueType- Returns:
thisbuilder for use in a chained invocation
-
functionName
@CanIgnoreReturnValue public final ImmutableFunctionCallOperator.Builder functionName(String functionName) Initializes the value for thefunctionNameattribute.- Parameters:
functionName- The value for functionName- Returns:
thisbuilder for use in a chained invocation
-
addArgs
@CanIgnoreReturnValue public final ImmutableFunctionCallOperator.Builder addArgs(Expression element) Adds one element toargslist.- Parameters:
element- A args element- Returns:
thisbuilder for use in a chained invocation
-
addArgs
@CanIgnoreReturnValue public final ImmutableFunctionCallOperator.Builder addArgs(Expression... elements) Adds elements toargslist.- Parameters:
elements- An array of args elements- Returns:
thisbuilder for use in a chained invocation
-
args
@CanIgnoreReturnValue public final ImmutableFunctionCallOperator.Builder args(Iterable<? extends Expression> elements) Sets or replaces all elements forargslist.- Parameters:
elements- An iterable of args elements- Returns:
thisbuilder for use in a chained invocation
-
addAllArgs
@CanIgnoreReturnValue public final ImmutableFunctionCallOperator.Builder addAllArgs(Iterable<? extends Expression> elements) Adds elements toargslist.- Parameters:
elements- An iterable of args elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableFunctionCallOperator.- Returns:
- An immutable instance of FunctionCallOperator
- Throws:
IllegalStateException- if any required attributes are missing
-