Class ImmutableFunctionCallOperator
java.lang.Object
io.dialob.session.engine.program.expr.arith.ImmutableFunctionCallOperator
- All Implemented Interfaces:
FunctionCallOperator,Expression,Serializable
@Generated(from="FunctionCallOperator",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableFunctionCallOperator
extends Object
implements FunctionCallOperator
Immutable implementation of
FunctionCallOperator.
Use the builder to create immutable instances:
ImmutableFunctionCallOperator.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFunctionCallOperator. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFunctionCallOperator.copyOf(FunctionCallOperator instance) Creates an immutable copy of aFunctionCallOperatorvalue.booleanThis instance is equal to all instances ofImmutableFunctionCallOperatorthat have equal attribute values.com.google.common.collect.ImmutableList<Expression> getArgs()inthashCode()Computes a hash code from attributes:valueType,functionName,args.toString()Prints the immutable valueFunctionCallOperatorwith attribute values.withArgs(Expression... elements) Copy the current immutable object with elements that replace the content ofargs.withArgs(Iterable<? extends Expression> elements) Copy the current immutable object with elements that replace the content ofargs.withFunctionName(String value) Copy the current immutable object by setting a value for thefunctionNameattribute.withValueType(ValueType value) Copy the current immutable object by setting a value for thevalueTypeattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.dialob.session.engine.program.expr.arith.FunctionCallOperator
eval, getEvalRequiredConditions
-
Method Details
-
getValueType
- Specified by:
getValueTypein interfaceExpression- Specified by:
getValueTypein interfaceFunctionCallOperator- Returns:
- The value of the
valueTypeattribute
-
getFunctionName
- Specified by:
getFunctionNamein interfaceFunctionCallOperator- Returns:
- The value of the
functionNameattribute
-
getArgs
- Specified by:
getArgsin interfaceFunctionCallOperator- Returns:
- The value of the
argsattribute
-
withValueType
Copy the current immutable object by setting a value for thevalueTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valueType- Returns:
- A modified copy or the
thisobject
-
withFunctionName
Copy the current immutable object by setting a value for thefunctionNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for functionName- Returns:
- A modified copy or the
thisobject
-
withArgs
Copy the current immutable object with elements that replace the content ofargs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withArgs
Copy the current immutable object with elements that replace the content ofargs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of args elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableFunctionCallOperatorthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:valueType,functionName,args. -
toString
Prints the immutable valueFunctionCallOperatorwith attribute values. -
copyOf
Creates an immutable copy of aFunctionCallOperatorvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable FunctionCallOperator instance
-
builder
Creates a builder forImmutableFunctionCallOperator.ImmutableFunctionCallOperator.builder() .valueType(io.dialob.rule.parser.api.ValueType) // requiredvalueType.functionName(String) // requiredfunctionName.addArgs|addAllArgs(io.dialob.session.engine.program.model.Expression) //argselements .build();- Returns:
- A new ImmutableFunctionCallOperator builder
-