Package io.dialob.program.expr.arith
Class ImmutableFunctionCallOperator.Builder
- java.lang.Object
-
- io.dialob.program.expr.arith.ImmutableFunctionCallOperator.Builder
-
- Enclosing class:
- ImmutableFunctionCallOperator
@NotThreadSafe public static final class ImmutableFunctionCallOperator.Builder extends Object
Builds instances of typeImmutableFunctionCallOperator. 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 ImmutableFunctionCallOperator.BuilderaddAllArgs(Iterable<? extends Expression> elements)Adds elements toargslist.ImmutableFunctionCallOperator.BuilderaddArgs(Expression element)Adds one element toargslist.ImmutableFunctionCallOperator.BuilderaddArgs(Expression... elements)Adds elements toargslist.ImmutableFunctionCallOperator.Builderargs(Iterable<? extends Expression> elements)Sets or replaces all elements forargslist.ImmutableFunctionCallOperatorbuild()Builds a newImmutableFunctionCallOperator.ImmutableFunctionCallOperator.Builderfrom(FunctionCallOperator instance)Fill a builder with attribute values from the providedio.dialob.program.expr.arith.FunctionCallOperatorinstance.ImmutableFunctionCallOperator.Builderfrom(Expression instance)Fill a builder with attribute values from the providedio.dialob.program.model.Expressioninstance.ImmutableFunctionCallOperator.BuilderfunctionName(String functionName)Initializes the value for thefunctionNameattribute.ImmutableFunctionCallOperator.BuildervalueType(ValueType valueType)Initializes the value for thevalueTypeattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableFunctionCallOperator.Builder from(FunctionCallOperator instance)
Fill a builder with attribute values from the providedio.dialob.program.expr.arith.FunctionCallOperatorinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutableFunctionCallOperator.Builder from(Expression instance)
Fill a builder with attribute values from the providedio.dialob.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
public ImmutableFunctionCallOperator build()
Builds a newImmutableFunctionCallOperator.- Returns:
- An immutable instance of FunctionCallOperator
- Throws:
IllegalStateException- if any required attributes are missing
-
-