|
|||||||||||
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
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 | |
BasicBinaryArithmeticOperator()
|
|
BasicBinaryArithmeticOperator(Expression e0,
Expression e1)
|
|
BasicBinaryArithmeticOperator(org.objectweb.jorm.type.api.PType type)
|
|
BasicBinaryArithmeticOperator(org.objectweb.jorm.type.api.PType type,
Expression e0,
Expression e1)
|
Method Summary | |
Operand |
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; |
Operand |
evaluate(ParameterOperand[] pos,
java.lang.Object o)
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; |
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, getOperatorString, 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 BasicBinaryArithmeticOperator()
public BasicBinaryArithmeticOperator(Expression e0, Expression e1)
public BasicBinaryArithmeticOperator(org.objectweb.jorm.type.api.PType type)
public BasicBinaryArithmeticOperator(org.objectweb.jorm.type.api.PType type, Expression e0, Expression e1)
Method Detail |
public Operand evaluate(ParameterOperand[] pos, java.lang.Object o) throws ExpressionException
Expression
evaluate
in interface Expression
pos
- a list of ParameterOperando
- the input Object from which values are taken for the
evaluation
ExpressionException
public 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.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 Operand compileExpression() throws ExpressionException, MalformedExpressionException
Expression
compileExpression
in interface Expression
MalformedExpressionException
- if syntax error
ExpressionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |