org.objectweb.medor.expression.api

Interface BinaryOperator

All Superinterfaces:
org.objectweb.medor.clone.api.Cloneable, Expression, Operator, Serializable
Known Subinterfaces:
BinaryArithmeticOperator, BinaryLogicalOperator, Comparator
Known Implementing Classes:
And, BasicBinaryArithmeticOperator, BasicBinaryLogicalOperator, BasicBinaryOperator, BasicComparator, Concat, ConditionalAnd, ConditionalOr, DivideBy, Equal, FirstLocate, Greater, GreaterEqual, Lower, LowerEqual, Minus, Mod, Mult, NotEqual, Or, Plus

public interface BinaryOperator
extends Operator

Author:
Sebastien Chassande-Barrioz

Fields inherited from interface org.objectweb.medor.expression.api.Operator

ABS, AND, AVG, BITWIZE, CONCAT, CONDAND, CONDOR, COUNT, DIV, EQUAL, FIRSTLOCATE, GREATER, GREATEREQUAL, IN, INDEXEDLOCATE, LENGTH, LOWER, LOWEREQUAL, MAX, MEMBEROF, MIN, MINUS, MOD, MULT, NAV, NOT, NOTEQUAL, NOTMEMBEROF, OR, PLUS, SQRT, STRING_LOWER, STRING_UPPER, SUBSTRING, SUM, UMINUS

Method Summary

Expression
getLeftExpression()
Deprecated. use getExpression(0)
Expression
getRightExpression()
Deprecated. use getExpression(1)
void
setLeftExpression(Expression leftChild)
Deprecated. use setExpression(0)
void
setRightExpression(Expression rightChild)
Deprecated. use setExpression(1)

Methods inherited from interface org.objectweb.medor.clone.api.Cloneable

clone

Methods inherited from interface org.objectweb.medor.expression.api.Expression

compileExpression, evaluate, getType

Methods inherited from interface org.objectweb.medor.expression.api.Operator

getExpression, getOperandNumber, getOperatorString, setExpression

Method Details

getLeftExpression

public Expression getLeftExpression()

Deprecated. use getExpression(0)


getRightExpression

public Expression getRightExpression()

Deprecated. use getExpression(1)


setLeftExpression

public void setLeftExpression(Expression leftChild)
            throws IllegalStateException

Deprecated. use setExpression(0)

This method sets the left operand or operator to this expression object. There is no verification of types when performing this method. After evaluating, we must compile this expression.


setRightExpression

public void setRightExpression(Expression rightChild)
            throws IllegalStateException

Deprecated. use setExpression(1)

This method sets the left operand or operator to this expression object. There is no verification of types when performing this method. After evaluating, we must compile this expression.