org.objectweb.medor.expression.api
Interface BinaryOperator

All Superinterfaces:
org.objectweb.medor.clone.api.Cloneable, java.lang.Cloneable, Expression, Operator, java.io.Serializable
All Known Subinterfaces:
BinaryArithmeticOperator, BinaryLogicalOperator, Comparator
All Known Implementing Classes:
BasicBinaryArithmeticOperator, BasicBinaryLogicalOperator, BasicBinaryOperator, BasicComparator, Concat, FirstLocate

public interface BinaryOperator
extends Operator

Author:
Sebastien Chassande-Barrioz

Field Summary
 
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.expression.api.Operator
getExpression, getOperandNumber, getOperatorString, setExpression
 
Methods inherited from interface org.objectweb.medor.expression.api.Expression
compileExpression, evaluate, getType
 
Methods inherited from interface org.objectweb.medor.clone.api.Cloneable
clone
 

Method Detail

setLeftExpression

public void setLeftExpression(Expression leftChild)
                       throws java.lang.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.

Throws:
java.lang.IllegalStateException

setRightExpression

public void setRightExpression(Expression rightChild)
                        throws java.lang.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.

Throws:
java.lang.IllegalStateException

getLeftExpression

public Expression getLeftExpression()
Deprecated. use getExpression(0)


getRightExpression

public Expression getRightExpression()
Deprecated. use getExpression(1)