Class AbstractShortCircuitBinaryOperator
java.lang.Object
com.scriptbasic.executors.AbstractExpression
com.scriptbasic.executors.operators.AbstractOperator
com.scriptbasic.executors.operators.AbstractBinaryOperator
com.scriptbasic.executors.operators.AbstractShortCircuitBinaryOperator
- All Implemented Interfaces:
AnalysisResult,Evaluator,Expression
- Direct Known Subclasses:
LogicalAndOperator,LogicalOrOperator
public abstract class AbstractShortCircuitBinaryOperator extends AbstractBinaryOperator
-
Constructor Summary
Constructors Constructor Description AbstractShortCircuitBinaryOperator() -
Method Summary
Modifier and Type Method Description RightValueevaluate(Interpreter interpreter)protected abstract RightValueevaluateOn(Interpreter interpreter, RightValue leftOperand, Expression rightOperand)Methods inherited from class com.scriptbasic.executors.operators.AbstractBinaryOperator
getLeftOperand, getRightOperand, setLeftOperand, setRightOperand
-
Constructor Details
-
AbstractShortCircuitBinaryOperator
public AbstractShortCircuitBinaryOperator()
-
-
Method Details
-
evaluateOn
protected abstract RightValue evaluateOn(Interpreter interpreter, RightValue leftOperand, Expression rightOperand) throws ScriptBasicException- Throws:
ScriptBasicException
-
evaluate
- Throws:
ScriptBasicException
-