|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.medor.filter.lib.BasicBinaryOperator | +--org.objectweb.medor.filter.lib.BasicBinaryArithmeticOperator
Field Summary |
Fields inherited from class org.objectweb.medor.filter.lib.BasicBinaryOperator |
left, leftResult, result, right, rightResult, type, verified |
Fields inherited from interface org.objectweb.medor.filter.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, SUBSTRING, SUM, UMINUS |
Constructor Summary | |
BasicBinaryArithmeticOperator()
|
Method Summary | |
void |
compileExpression()
Checks the semantic integrity of an expression. |
abstract java.math.BigDecimal |
evaluate(java.math.BigDecimal op1,
java.math.BigDecimal op2)
|
abstract java.math.BigInteger |
evaluate(java.math.BigInteger op1,
java.math.BigInteger op2)
|
abstract int |
evaluate(char op1,
char op2)
This fonction evaluate the comaparison between two characters variable; |
abstract java.lang.String |
evaluate(char op1,
java.lang.String op2)
This fonction evaluate the comaparison between two characters variable; |
abstract java.util.Date |
evaluate(java.util.Date op1,
java.util.Date op2)
This fonction evaluate the comaparison between two java.util.Date variable; |
abstract double |
evaluate(double op1,
double op2)
This fonction evaluate the comaparison between two double variable; |
abstract double |
evaluate(double op1,
float op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract double |
evaluate(double op1,
int op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract double |
evaluate(double op1,
long op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract double |
evaluate(double op1,
short op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract double |
evaluate(float op1,
double op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract float |
evaluate(float op1,
float op2)
This fonction evaluate the comaparison between two floats variables; |
abstract float |
evaluate(float op1,
int op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract float |
evaluate(float op1,
long op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract float |
evaluate(float op1,
short op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract double |
evaluate(int op1,
double op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract float |
evaluate(int op1,
float op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract int |
evaluate(int op1,
int op2)
This fonction evaluate the arithmetic operation between two numerics variables; |
abstract long |
evaluate(int op1,
long op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract int |
evaluate(int op1,
short op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract double |
evaluate(long op1,
double op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract float |
evaluate(long op1,
float op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract long |
evaluate(long op1,
int op2)
This fonction evaluate the comaparison between two numerics variables; |
abstract long |
evaluate(long op1,
long op2)
This fonction evaluate the comaparison between two long variable; |
abstract long |
evaluate(long op1,
short op2)
This fonction evaluate the comaparison between two numerics variables; |
void |
evaluate(ParameterOperand[] pos,
Tuple t)
It evaluates the expression tree and puts the result into the operand result. |
abstract java.lang.String |
evaluate(java.lang.String op1,
char op2)
This fonction evaluate the comaparison between two string variable; |
abstract java.lang.String |
evaluate(java.lang.String op1,
java.lang.String op2)
This fonction evaluate the comaparison between two string variable; |
abstract java.sql.Timestamp |
evaluate(java.sql.Timestamp op1,
java.sql.Timestamp op2)
This fonction evaluate the comaparison between two java.sql.Timestamp variable; |
abstract java.sql.Time |
evaluate(java.sql.Time op1,
java.sql.Time op2)
This fonction evaluate the comaparison between two java.sql.Time variable; |
Methods inherited from class org.objectweb.medor.filter.lib.BasicBinaryOperator |
clone, getExpression, getLeftExpression, getOperandNumber, getResult, getRightExpression, getType, isCompiled, setExpression, setLeftExpression, setRightExpression |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.medor.filter.api.BinaryOperator |
getLeftExpression, getRightExpression, setLeftExpression, setRightExpression |
Methods inherited from interface org.objectweb.medor.filter.api.Operator |
getExpression, getOperandNumber, getOperatorString, setExpression |
Methods inherited from interface org.objectweb.medor.filter.api.Expression |
getResult, getType, isCompiled |
Methods inherited from interface org.objectweb.medor.api.Cloneable |
clone |
Constructor Detail |
public BasicBinaryArithmeticOperator()
Method Detail |
public void evaluate(ParameterOperand[] pos, Tuple t) throws MedorException, java.lang.IllegalStateException
Expression
evaluate
in interface Expression
evaluate
in class BasicBinaryOperator
pos
- a list of ParameterOperandt
- Tuple
java.lang.IllegalStateException
- if this expression is not
compiled.
MedorException
- if evaluation errorpublic abstract int evaluate(int op1, int op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- integerop2
- integer
public abstract int evaluate(int op1, short op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- intop2
- short
public abstract long evaluate(int op1, long op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- intop2
- long
public abstract float evaluate(int op1, float op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- intop2
- float
public abstract double evaluate(int op1, double op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- intop2
- double
public abstract float evaluate(float op1, float op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- floatop2
- float
public abstract float evaluate(float op1, short op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- floatop2
- short
public abstract float evaluate(float op1, int op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- floatop2
- int
public abstract float evaluate(float op1, long op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- floatop2
- long
public abstract double evaluate(float op1, double op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- floatop2
- double
public abstract int evaluate(char op1, char op2) throws TypingException
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- characterop2
- character
TypingException
public abstract java.lang.String evaluate(char op1, java.lang.String op2) throws TypingException
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- charop2
- string
TypingException
- if this operation is not supportedpublic abstract long evaluate(long op1, long op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- longop2
- long
public abstract long evaluate(long op1, short op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- longop2
- short
public abstract long evaluate(long op1, int op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- longop2
- int
public abstract float evaluate(long op1, float op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- longop2
- float
public abstract double evaluate(long op1, double op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- longop2
- double
public abstract double evaluate(double op1, double op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- doubleop2
- double
public abstract double evaluate(double op1, short op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- doubleop2
- short
public abstract double evaluate(double op1, int op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- doubleop2
- int
public abstract double evaluate(double op1, float op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- doubleop2
- float
public abstract double evaluate(double op1, long op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- doubleop2
- long
public abstract java.math.BigDecimal evaluate(java.math.BigDecimal op1, java.math.BigDecimal op2)
public abstract java.math.BigInteger evaluate(java.math.BigInteger op1, java.math.BigInteger op2)
public abstract java.lang.String evaluate(java.lang.String op1, java.lang.String op2) throws TypingException
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- Stringop2
- String
TypingException
- if this operation is not supportedpublic abstract java.lang.String evaluate(java.lang.String op1, char op2) throws TypingException
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- Stringop2
- char
TypingException
- if this operation is not supportedpublic abstract java.sql.Timestamp evaluate(java.sql.Timestamp op1, java.sql.Timestamp op2) throws TypingException
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- TimeStampop2
- Timestamp
TypingException
- if this operation is not supportedpublic abstract java.sql.Time evaluate(java.sql.Time op1, java.sql.Time op2) throws TypingException
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- Timeop2
- Time
TypingException
- if this operation is not supportedpublic abstract java.util.Date evaluate(java.util.Date op1, java.util.Date op2) throws TypingException
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
op1
- Dateop2
- Date
TypingException
- if this operation is not supportedpublic void compileExpression() throws TypingException, MalformedExpressionException
Expression
compileExpression
in interface Expression
MalformedExpressionException
- if syntax error
TypingException
- when incompatible types error
occures.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |