|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a binary arithmetic operation (+, -, ...).
It gives methods for a binary evaluation with all valid cases. These binary evaluate methods are called by the generic evaluate(ParameterOperand[], Object) method, depending on the types of the left and right Operands.
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 | |
int |
evaluate(char op1,
char op2)
This fonction evaluate the comaparison between two characters variable; |
java.lang.String |
evaluate(char op1,
java.lang.String op2)
This fonction evaluate the comaparison between two characters variable; |
java.util.Date |
evaluate(java.util.Date op1,
java.util.Date op2)
This fonction evaluate the comaparison between two java.util.Date variable; |
double |
evaluate(double op1,
double op2)
This fonction evaluate the comaparison between two double variable; |
double |
evaluate(double op1,
float op2)
This fonction evaluate the comaparison between two numerics variables; |
double |
evaluate(double op1,
int op2)
This fonction evaluate the comaparison between two numerics variables; |
double |
evaluate(double op1,
long op2)
This fonction evaluate the comaparison between two numerics variables; |
double |
evaluate(double op1,
short op2)
This fonction evaluate the comaparison between two numerics variables; |
double |
evaluate(float op1,
double op2)
This fonction evaluate the comaparison between two numerics variables; |
float |
evaluate(float op1,
float op2)
This fonction evaluate the comaparison between two floats variables; |
float |
evaluate(float op1,
int op2)
This fonction evaluate the comaparison between two numerics variables; |
float |
evaluate(float op1,
long op2)
This fonction evaluate the comaparison between two numerics variables; |
float |
evaluate(float op1,
short op2)
This fonction evaluate the comaparison between two numerics variables; |
double |
evaluate(int op1,
double op2)
This fonction evaluate the comaparison between two numerics variables; |
float |
evaluate(int op1,
float op2)
This fonction evaluate the comaparison between two numerics variables; |
int |
evaluate(int op1,
int op2)
This fonction evaluate the arithmetic operation between two numerics variables; |
long |
evaluate(int op1,
long op2)
This fonction evaluate the comaparison between two numerics variables; |
int |
evaluate(int op1,
short op2)
This fonction evaluate the comaparison between two numerics variables; |
double |
evaluate(long op1,
double op2)
This fonction evaluate the comaparison between two numerics variables; |
float |
evaluate(long op1,
float op2)
This fonction evaluate the comaparison between two numerics variables; |
long |
evaluate(long op1,
int op2)
This fonction evaluate the comaparison between two numerics variables; |
long |
evaluate(long op1,
long op2)
This fonction evaluate the comaparison between two long variable; |
long |
evaluate(long op1,
short op2)
This fonction evaluate the comaparison between two numerics variables; |
java.lang.String |
evaluate(java.lang.String op1,
char op2)
This fonction evaluate the comaparison between two string variable; |
java.lang.String |
evaluate(java.lang.String op1,
java.lang.String op2)
This fonction evaluate the comaparison between two string variable; |
Methods inherited from interface org.objectweb.medor.expression.api.BinaryOperator |
getLeftExpression, getRightExpression, setLeftExpression, setRightExpression |
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 |
public int evaluate(int op1, int op2)
op1
- integerop2
- integer
public int evaluate(int op1, short op2)
op1
- intop2
- short
public long evaluate(int op1, long op2)
op1
- intop2
- long
public float evaluate(int op1, float op2)
op1
- intop2
- float
public double evaluate(int op1, double op2)
op1
- intop2
- double
public float evaluate(float op1, float op2)
op1
- floatop2
- float
public float evaluate(float op1, short op2)
op1
- floatop2
- short
public float evaluate(float op1, int op2)
op1
- floatop2
- int
public float evaluate(float op1, long op2)
op1
- floatop2
- long
public double evaluate(float op1, double op2)
op1
- floatop2
- double
public int evaluate(char op1, char op2) throws TypingException
op1
- characterop2
- character
TypingException
public java.lang.String evaluate(char op1, java.lang.String op2) throws TypingException
op1
- charop2
- string
TypingException
- if this operation is not supportedpublic long evaluate(long op1, long op2)
op1
- longop2
- long
public long evaluate(long op1, short op2)
op1
- longop2
- short
public long evaluate(long op1, int op2)
op1
- longop2
- int
public float evaluate(long op1, float op2)
op1
- longop2
- float
public double evaluate(long op1, double op2)
op1
- longop2
- double
public double evaluate(double op1, double op2)
op1
- doubleop2
- double
public double evaluate(double op1, short op2)
op1
- doubleop2
- short
public double evaluate(double op1, int op2)
op1
- doubleop2
- int
public double evaluate(double op1, float op2)
op1
- doubleop2
- float
public double evaluate(double op1, long op2)
op1
- doubleop2
- long
public java.lang.String evaluate(java.lang.String op1, java.lang.String op2) throws TypingException
op1
- Stringop2
- String
TypingException
- if this operation is not supportedpublic java.lang.String evaluate(java.lang.String op1, char op2) throws TypingException
op1
- Stringop2
- char
TypingException
- if this operation is not supportedpublic java.util.Date evaluate(java.util.Date op1, java.util.Date op2) throws TypingException
op1
- Dateop2
- Date
TypingException
- if this operation is not supported
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |