Class AbstractBinaryFullCircuitOperator
- java.lang.Object
-
- com.scriptbasic.executors.AbstractExpression
-
- com.scriptbasic.executors.operators.AbstractOperator
-
- com.scriptbasic.executors.operators.AbstractBinaryOperator
-
- com.scriptbasic.executors.operators.AbstractBinaryFullCircuitOperator
-
- All Implemented Interfaces:
AnalysisResult,Evaluator,Expression
- Direct Known Subclasses:
AbstractBinaryFullCircuitNumericOperator,AbstractCompareOperator
public abstract class AbstractBinaryFullCircuitOperator extends AbstractBinaryOperator
This class is extended by the operator classes that implement an operation that evaluates both operand. These are usually the numeric operands, as opposed to the logical 'and' and 'or' operators that evaluate the second operand only if the first operand is true and/or false.- Author:
- Peter Verhas date May 31, 2012
-
-
Constructor Summary
Constructors Constructor Description AbstractBinaryFullCircuitOperator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description RightValueevaluate(Interpreter interpreter)protected abstract RightValueevaluateOn(RightValue leftOperand, RightValue rightOperand)-
Methods inherited from class com.scriptbasic.executors.operators.AbstractBinaryOperator
getLeftOperand, getRightOperand, setLeftOperand, setRightOperand
-
-
-
-
Method Detail
-
evaluateOn
protected abstract RightValue evaluateOn(RightValue leftOperand, RightValue rightOperand) throws ScriptBasicException
- Throws:
ScriptBasicException
-
evaluate
public final RightValue evaluate(Interpreter interpreter) throws ScriptBasicException
- Throws:
ScriptBasicException
-
-