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
All Methods Instance Methods Abstract Methods Concrete Methods 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
-
-
-
-
Method Detail
-
evaluateOn
protected abstract RightValue evaluateOn(Interpreter interpreter, RightValue leftOperand, Expression rightOperand) throws ScriptBasicException
- Throws:
ScriptBasicException
-
evaluate
public RightValue evaluate(Interpreter interpreter) throws ScriptBasicException
- Throws:
ScriptBasicException
-
-