|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.core.formula.lang.RelationalOperator
public abstract class RelationalOperator
A relational operator.
| Constructor Summary | |
|---|---|
RelationalOperator()
Creates a new relational operator. |
|
| Method Summary | ||
|---|---|---|
Value |
applyTo(Expression leftOperand,
Expression rightOperand)
Applies the operator to the given operands and returns the result. |
|
abstract
|
compare(Comparable<T> left,
T right)
Applies the operator to the given operands and returns a boolean value. |
|
Value.Type |
getOperandValueType()
Returns the type of value that the operator's operands can have. |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface csheets.core.formula.Operator |
|---|
getIdentifier |
| Constructor Detail |
|---|
public RelationalOperator()
| Method Detail |
|---|
public final Value applyTo(Expression leftOperand,
Expression rightOperand)
throws IllegalValueTypeException
BinaryOperator
applyTo in interface BinaryOperatorIllegalValueTypeException - if the value of an operand is not of the expected type
public abstract <T> boolean compare(Comparable<T> left,
T right)
left - the value of the left operandright - the value of the right operand
public Value.Type getOperandValueType()
Operator
getOperandValueType in interface Operatorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||