org.objectweb.medor.expression.lib

Class Mult

Implemented Interfaces:
BinaryArithmeticOperator, BinaryOperator, org.objectweb.medor.clone.api.Cloneable, Expression, Operator, Serializable

public class Mult
extends BasicBinaryArithmeticOperator

MEDOR: Middleware Enabling Distributed Object Requests Copyright (C) 2001-2003 France Telecom R&D Contact: alexandre.lefebvre@rd.francetelecom.com This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Initial developers: M. Alia, A. Lefebvre

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

Mult()
Mult(Expression l, Expression r)

Method Summary

BigDecimal
evaluate(BigDecimal op1, BigDecimal op2)
BigInteger
evaluate(BigInteger op1, BigInteger op2)
Date
evaluate(Date op1, Date op2)
String
evaluate(String op1, String op2)
String
evaluate(String op1, char op2)
Time
evaluate(Time op1, Time op2)
Timestamp
evaluate(Timestamp op1, Timestamp op2)
String
evaluate(char op1, String op2)
int
evaluate(char op1, char op2)
double
evaluate(double op1, double op2)
double
evaluate(double op1, float op2)
double
evaluate(double op1, int op2)
double
evaluate(double op1, long op2)
double
evaluate(double op1, short op2)
double
evaluate(float op1, double op2)
float
evaluate(float op1, float op2)
float
evaluate(float op1, int op2)
float
evaluate(float op1, long op2)
float
evaluate(float op1, short op2)
double
evaluate(int op1, double op2)
float
evaluate(int op1, float op2)
int
evaluate(int op1, int op2)
long
evaluate(int op1, long op2)
int
evaluate(int op1, short op2)
double
evaluate(long op1, double op2)
float
evaluate(long op1, float op2)
long
evaluate(long op1, int op2)
long
evaluate(long op1, long op2)
long
evaluate(long op1, short op2)
String
getOperatorString()

Methods inherited from class org.objectweb.medor.expression.lib.BasicBinaryArithmeticOperator

compileExpression, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, 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

clone, getType

Methods inherited from class org.objectweb.medor.clone.lib.BasicCloneable

clone, clone, clone, getClone

Constructor Details

Mult

public Mult()


Mult

public Mult(Expression l,
            Expression r)

Method Details

evaluate

public BigDecimal evaluate(BigDecimal op1,
                           BigDecimal op2)
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public BigInteger evaluate(BigInteger op1,
                           BigInteger op2)
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public Date evaluate(Date op1,
                     Date op2)
            throws TypingException
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public String evaluate(String op1,
                       String op2)
            throws TypingException
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public String evaluate(String op1,
                       char op2)
            throws TypingException
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public Time evaluate(Time op1,
                     Time op2)
            throws TypingException


evaluate

public Timestamp evaluate(Timestamp op1,
                          Timestamp op2)
            throws TypingException


evaluate

public String evaluate(char op1,
                       String op2)
            throws TypingException
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public int evaluate(char op1,
                    char op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public double evaluate(double op1,
                       double op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public double evaluate(double op1,
                       float op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public double evaluate(double op1,
                       int op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public double evaluate(double op1,
                       long op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public double evaluate(double op1,
                       short op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public double evaluate(float op1,
                       double op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public float evaluate(float op1,
                      float op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public float evaluate(float op1,
                      int op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public float evaluate(float op1,
                      long op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public float evaluate(float op1,
                      short op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public double evaluate(int op1,
                       double op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public float evaluate(int op1,
                      float op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public int evaluate(int op1,
                    int op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public long evaluate(int op1,
                     long op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public int evaluate(int op1,
                    short op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public double evaluate(long op1,
                       double op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public float evaluate(long op1,
                      float op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public long evaluate(long op1,
                     int op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public long evaluate(long op1,
                     long op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


evaluate

public long evaluate(long op1,
                     short op2)
Specified by:
evaluate in interface BinaryArithmeticOperator
Overrides:
evaluate in interface BasicBinaryArithmeticOperator


getOperatorString

public String getOperatorString()
Specified by:
getOperatorString in interface Operator