Class AddOperator
java.lang.Object
- All Implemented Interfaces:
AnalysisResult,Evaluator,Expression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RightValueoperateOnDate(Long a, Long b) protected RightValueprotected RightValueoperateOnLongLong(Long a, Long b) protected RightValueoperateOnValues(RightValue leftOperand, RightValue rightOperand) If any operand is a string then concatenate the stringsprotected StringMethods inherited from class com.scriptbasic.executors.operators.AbstractBinaryFullCircuitHalfDoubleOperator
operateOnDoubleLong, operateOnLongDoubleMethods inherited from class com.scriptbasic.executors.operators.AbstractBinaryFullCircuitNumericOperator
evaluateOnMethods inherited from class com.scriptbasic.executors.operators.AbstractBinaryFullCircuitOperator
evaluate, getLeftOperandEvaluated, getRightOperandEvaluatedMethods inherited from class com.scriptbasic.executors.operators.AbstractBinaryOperator
getLeftOperand, getRightOperand, setLeftOperand, setRightOperandMethods inherited from class com.scriptbasic.executors.operators.AbstractOperator
getAsBoolean, getAsDouble, getAsLong, getAsObject, getAsString
-
Constructor Details
-
AddOperator
public AddOperator()
-
-
Method Details
-
operateOnDoubleDouble
- Specified by:
operateOnDoubleDoublein classAbstractBinaryFullCircuitNumericOperator<Double>
-
operateOnLongLong
- Specified by:
operateOnLongLongin classAbstractBinaryFullCircuitNumericOperator<Double>
-
operateOnValues
protected RightValue operateOnValues(RightValue leftOperand, RightValue rightOperand) throws BasicRuntimeException If any operand is a string then concatenate the strings- Overrides:
operateOnValuesin classAbstractBinaryFullCircuitNumericOperator<Double>- Parameters:
leftOperand- parameterrightOperand- parameter- Returns:
- the concatenated string
- Throws:
BasicRuntimeException- in case of exception
-
operatorName
- Specified by:
operatorNamein classAbstractBinaryFullCircuitNumericOperator<Double>
-
operateOnDate
- Specified by:
operateOnDatein classAbstractBinaryFullCircuitNumericOperator<Double>
-