org.objectweb.medor.expression.lib
Class Minus

java.lang.Object
  extended byorg.objectweb.medor.clone.lib.BasicCloneable
      extended byorg.objectweb.medor.expression.lib.BasicExpression
          extended byorg.objectweb.medor.expression.lib.BasicOperator
              extended byorg.objectweb.medor.expression.lib.BasicBinaryOperator
                  extended byorg.objectweb.medor.expression.lib.BasicBinaryArithmeticOperator
                      extended byorg.objectweb.medor.expression.lib.Minus
All Implemented Interfaces:
BinaryArithmeticOperator, BinaryOperator, org.objectweb.medor.clone.api.Cloneable, java.lang.Cloneable, Expression, Operator, java.io.Serializable

public class Minus
extends BasicBinaryArithmeticOperator

Author:
Sebastien Chassande-Barrioz
See Also:
Serialized Form

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
Minus()
           
Minus(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
checkOperands, clone, compileOperands, 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

Minus

public Minus()

Minus

public Minus(Expression l,
             Expression r)
Method Detail

evaluate

public int evaluate(int op1,
                    int op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the arithmetic operation between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public int evaluate(int op1,
                    short op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public long evaluate(int op1,
                     long op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public float evaluate(int op1,
                      float op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public double evaluate(int op1,
                       double op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public float evaluate(float op1,
                      float op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two floats variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public float evaluate(float op1,
                      short op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public float evaluate(float op1,
                      int op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public float evaluate(float op1,
                      long op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public double evaluate(float op1,
                       double op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public int evaluate(char op1,
                    char op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two characters variable;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public long evaluate(long op1,
                     long op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two long variable;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public long evaluate(long op1,
                     short op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public long evaluate(long op1,
                     int op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public float evaluate(long op1,
                      float op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public double evaluate(long op1,
                       double op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public double evaluate(double op1,
                       double op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two double variable;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public double evaluate(double op1,
                       short op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public double evaluate(double op1,
                       int op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public double evaluate(double op1,
                       float op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public double evaluate(double op1,
                       long op2)
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public java.math.BigDecimal evaluate(java.math.BigDecimal op1,
                                     java.math.BigDecimal op2)
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public java.math.BigInteger evaluate(java.math.BigInteger op1,
                                     java.math.BigInteger op2)
Specified by:
evaluate in class BasicBinaryArithmeticOperator

evaluate

public java.lang.String evaluate(char op1,
                                 java.lang.String op2)
                          throws TypingException
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two characters variable;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator
Throws:
TypingException

evaluate

public java.lang.String evaluate(java.lang.String op1,
                                 java.lang.String op2)
                          throws TypingException
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two string variable;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator
Throws:
TypingException

evaluate

public java.sql.Time evaluate(java.sql.Time op1,
                              java.sql.Time op2)
                       throws TypingException
Throws:
TypingException

evaluate

public java.sql.Timestamp evaluate(java.sql.Timestamp op1,
                                   java.sql.Timestamp op2)
                            throws TypingException
Throws:
TypingException

evaluate

public java.util.Date evaluate(java.util.Date op1,
                               java.util.Date op2)
                        throws TypingException
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two java.util.Date variable;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator
Throws:
TypingException

evaluate

public java.lang.String evaluate(java.lang.String op1,
                                 char op2)
                          throws TypingException
Description copied from interface: BinaryArithmeticOperator
This fonction evaluate the comaparison between two string variable;

Specified by:
evaluate in interface BinaryArithmeticOperator
Specified by:
evaluate in class BasicBinaryArithmeticOperator
Throws:
TypingException

getOperatorString

public java.lang.String getOperatorString()
Description copied from interface: Operator
Returns the String representing the operator in Java

Returns:
the String representing the operator in Java