Class AbstractBinaryFullCircuitNumericOperator<T extends java.lang.Number>
java.lang.Object
com.scriptbasic.executors.AbstractExpression
com.scriptbasic.executors.operators.AbstractOperator
com.scriptbasic.executors.operators.AbstractBinaryOperator
com.scriptbasic.executors.operators.AbstractBinaryFullCircuitOperator
com.scriptbasic.executors.operators.AbstractBinaryFullCircuitNumericOperator<T>
- All Implemented Interfaces:
AnalysisResult,Evaluator,Expression
- Direct Known Subclasses:
AbstractBinaryFullCircuitHalfDoubleOperator,ModuloOperator
public abstract class AbstractBinaryFullCircuitNumericOperator<T extends java.lang.Number> extends AbstractBinaryFullCircuitOperator
-
Constructor Summary
Constructors Constructor Description AbstractBinaryFullCircuitNumericOperator() -
Method Summary
Modifier and Type Method Description protected RightValueevaluateOn(RightValue leftOperand, RightValue rightOperand)protected abstract RightValueoperateOnDoubleDouble(java.lang.Double a, java.lang.Double b)protected abstract RightValueoperateOnDoubleLong(java.lang.Double a, java.lang.Long b)protected abstract RightValueoperateOnLongDouble(java.lang.Long a, java.lang.Double b)protected abstract RightValueoperateOnLongLong(java.lang.Long a, java.lang.Long b)protected RightValueoperateOnValues(RightValue leftOperand, RightValue rightOperand)protected abstract java.lang.StringoperatorName()Methods 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
-
AbstractBinaryFullCircuitNumericOperator
public AbstractBinaryFullCircuitNumericOperator()
-
-
Method Details
-
operateOnDoubleDouble
-
operateOnDoubleLong
-
operateOnLongDouble
-
operateOnLongLong
-
operateOnValues
protected RightValue operateOnValues(RightValue leftOperand, RightValue rightOperand) throws BasicRuntimeException- Throws:
BasicRuntimeException
-
operatorName
protected abstract java.lang.String operatorName() -
evaluateOn
protected final RightValue evaluateOn(RightValue leftOperand, RightValue rightOperand) throws BasicRuntimeException- Specified by:
evaluateOnin classAbstractBinaryFullCircuitOperator- Throws:
BasicRuntimeException
-