|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.medor.clone.lib.BasicCloneable
org.objectweb.medor.expression.lib.BasicExpression
org.objectweb.medor.expression.lib.BasicOperator
org.objectweb.medor.expression.lib.BasicBinaryOperator
org.objectweb.medor.expression.lib.BasicBinaryArithmeticOperator
org.objectweb.medor.expression.lib.Plus
This operator operates on the numeric Types and the string Type. The operation performed between string is the concatenation (string1+string2).
Field Summary |
Fields inherited from class org.objectweb.medor.expression.lib.BasicOperator |
expressions, result, verified |
Fields inherited from class org.objectweb.medor.expression.lib.BasicExpression |
logger, type |
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 |
Constructor Summary | |
Plus()
|
|
Plus(Expression l,
Expression r)
|
Method Summary | |
java.math.BigDecimal |
evaluate(java.math.BigDecimal op1,
java.math.BigDecimal op2)
|
java.math.BigInteger |
evaluate(java.math.BigInteger op1,
java.math.BigInteger op2)
|
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; |
java.sql.Timestamp |
evaluate(java.sql.Timestamp op1,
java.sql.Timestamp op2)
|
java.sql.Time |
evaluate(java.sql.Time op1,
java.sql.Time op2)
|
java.lang.String |
getOperatorString()
Returns the String representing the operator in Java |
Methods inherited from class org.objectweb.medor.expression.lib.BasicBinaryArithmeticOperator |
compileExpression, evaluate |
Methods inherited from class org.objectweb.medor.expression.lib.BasicBinaryOperator |
getLeftExpression, getRightExpression, setLeftExpression, setRightExpression |
Methods inherited from class org.objectweb.medor.expression.lib.BasicOperator |
clone, getExpression, getOperandNumber, setExpression |
Methods inherited from class org.objectweb.medor.expression.lib.BasicExpression |
getType |
Methods inherited from class org.objectweb.medor.clone.lib.BasicCloneable |
clone, clone, getClone |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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, setExpression |
Methods inherited from interface org.objectweb.medor.expression.api.Expression |
getType |
Methods inherited from interface org.objectweb.medor.clone.api.Cloneable |
clone |
Constructor Detail |
public Plus()
public Plus(Expression l, Expression r)
Method Detail |
public int evaluate(int op1, int op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public int evaluate(int op1, short op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public long evaluate(int op1, long op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public float evaluate(int op1, float op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public double evaluate(int op1, double op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public float evaluate(float op1, float op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public float evaluate(float op1, short op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public float evaluate(float op1, int op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public float evaluate(float op1, long op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public double evaluate(float op1, double op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public int evaluate(char op1, char op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public java.lang.String evaluate(char op1, java.lang.String op2) throws TypingException
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
TypingException
public long evaluate(long op1, long op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public long evaluate(long op1, short op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public long evaluate(long op1, int op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public float evaluate(long op1, float op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public double evaluate(long op1, double op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public double evaluate(double op1, double op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public double evaluate(double op1, short op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public double evaluate(double op1, int op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public double evaluate(double op1, float op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public double evaluate(double op1, long op2)
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
public java.math.BigDecimal evaluate(java.math.BigDecimal op1, java.math.BigDecimal op2)
evaluate
in class BasicBinaryArithmeticOperator
public java.math.BigInteger evaluate(java.math.BigInteger op1, java.math.BigInteger op2)
evaluate
in class BasicBinaryArithmeticOperator
public java.lang.String evaluate(java.lang.String op1, java.lang.String op2) throws TypingException
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
TypingException
public java.lang.String evaluate(java.lang.String op1, char op2) throws TypingException
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
TypingException
public java.sql.Timestamp evaluate(java.sql.Timestamp op1, java.sql.Timestamp op2) throws TypingException
TypingException
public java.sql.Time evaluate(java.sql.Time op1, java.sql.Time op2) throws TypingException
TypingException
public java.util.Date evaluate(java.util.Date op1, java.util.Date op2) throws TypingException
BinaryArithmeticOperator
evaluate
in interface BinaryArithmeticOperator
evaluate
in class BasicBinaryArithmeticOperator
TypingException
public java.lang.String getOperatorString()
Operator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |