Class AbstractCompareOperator
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.AbstractCompareOperator
- All Implemented Interfaces:
AnalysisResult,Evaluator,Expression
- Direct Known Subclasses:
EqualsOperator,GreaterOrEqualOperator,GreaterThanOperator,LessOrEqualOperator,LessThanOperator,NotEqualOperator
public abstract class AbstractCompareOperator extends AbstractBinaryFullCircuitOperator
-
Constructor Summary
Constructors Constructor Description AbstractCompareOperator() -
Method Summary
Modifier and Type Method Description protected static intcompareJavaObjectTo(BasicJavaObjectValue f, RightValue op)protected abstract java.lang.BooleancompareTo(BasicBooleanValue s, RightValue op)protected abstract java.lang.BooleancompareTo(BasicDoubleValue d, RightValue op)protected abstract java.lang.BooleancompareTo(BasicJavaObjectValue s, RightValue op)protected abstract java.lang.BooleancompareTo(BasicLongValue l, RightValue op)protected abstract java.lang.BooleancompareTo(BasicStringValue s, RightValue op)protected RightValueevaluateOn(RightValue leftOperand, RightValue rightOperand)Methods inherited from class com.scriptbasic.executors.operators.AbstractBinaryFullCircuitOperator
evaluate, getLeftOperandEvaluated, getRightOperandEvaluatedMethods inherited from class com.scriptbasic.executors.operators.AbstractBinaryOperator
getLeftOperand, getRightOperand, setLeftOperand, setRightOperand
-
Constructor Details
-
AbstractCompareOperator
public AbstractCompareOperator()
-
-
Method Details
-
compareJavaObjectTo
protected static int compareJavaObjectTo(BasicJavaObjectValue f, RightValue op) throws BasicRuntimeException- Throws:
BasicRuntimeException
-
compareTo
protected abstract java.lang.Boolean compareTo(BasicDoubleValue d, RightValue op) throws BasicRuntimeException- Throws:
BasicRuntimeException
-
compareTo
protected abstract java.lang.Boolean compareTo(BasicLongValue l, RightValue op) throws BasicRuntimeException- Throws:
BasicRuntimeException
-
compareTo
protected abstract java.lang.Boolean compareTo(BasicStringValue s, RightValue op) throws BasicRuntimeException- Throws:
BasicRuntimeException
-
compareTo
protected abstract java.lang.Boolean compareTo(BasicJavaObjectValue s, RightValue op) throws BasicRuntimeException- Throws:
BasicRuntimeException
-
compareTo
-
evaluateOn
protected RightValue evaluateOn(RightValue leftOperand, RightValue rightOperand) throws BasicRuntimeException- Specified by:
evaluateOnin classAbstractBinaryFullCircuitOperator- Throws:
BasicRuntimeException
-