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
All Methods Instance Methods Abstract Methods Concrete Methods 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
-
Methods inherited from class com.scriptbasic.executors.operators.AbstractBinaryOperator
getLeftOperand, getRightOperand, setLeftOperand, setRightOperand
-
-
-
-
Method Detail
-
operateOnDoubleDouble
protected abstract RightValue operateOnDoubleDouble(java.lang.Double a, java.lang.Double b)
-
operateOnDoubleLong
protected abstract RightValue operateOnDoubleLong(java.lang.Double a, java.lang.Long b) throws BasicRuntimeException
- Throws:
BasicRuntimeException
-
operateOnLongDouble
protected abstract RightValue operateOnLongDouble(java.lang.Long a, java.lang.Double b) throws BasicRuntimeException
- Throws:
BasicRuntimeException
-
operateOnLongLong
protected abstract RightValue operateOnLongLong(java.lang.Long a, java.lang.Long b) throws BasicRuntimeException
- Throws:
BasicRuntimeException
-
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
-
-