JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.formulae
Class Multiply

java.lang.Object
  |
  +--com.klg.jclass.util.formulae.Operation
        |
        +--com.klg.jclass.util.formulae.Multiply
All Implemented Interfaces:
Cloneable, Expression

public class Multiply
extends Operation

This is a concrete implementation for the multiplication "*" operation. Multiplication is normally the product of a pair of elements, *???but we also permit the multiplication of two lists???*.


Field Summary
 
Fields inherited from class com.klg.jclass.util.formulae.Operation
leftOperand, rightOperand
 
Constructor Summary
Multiply()
          Create a multiply operation
Multiply(com.klg.jclass.util.formulae.Expression ex1, com.klg.jclass.util.formulae.Expression ex2)
          Create an operation to multiply a given pair of Expressions
Multiply(com.klg.jclass.util.formulae.Expression left, Number right)
          Create an operation to multiply an Expression and a Number
Multiply(Number left, com.klg.jclass.util.formulae.Expression right)
          Create an operation to multiply a Number and an Expression
Multiply(Number left, Number right)
          Create an operation to multiply two Numbers
 
Method Summary
 com.klg.jclass.util.formulae.Result evaluate()
          Return the result of multiplying the operands
 
Methods inherited from class com.klg.jclass.util.formulae.Operation
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Multiply

public Multiply()
Create a multiply operation


Multiply

public Multiply(com.klg.jclass.util.formulae.Expression ex1,
                com.klg.jclass.util.formulae.Expression ex2)
Create an operation to multiply a given pair of Expressions


Multiply

public Multiply(com.klg.jclass.util.formulae.Expression left,
                Number right)
Create an operation to multiply an Expression and a Number


Multiply

public Multiply(Number left,
                com.klg.jclass.util.formulae.Expression right)
Create an operation to multiply a Number and an Expression


Multiply

public Multiply(Number left,
                Number right)
Create an operation to multiply two Numbers

Method Detail

evaluate

public com.klg.jclass.util.formulae.Result evaluate()
Return the result of multiplying the operands

Specified by:
evaluate in interface Expression
Specified by:
evaluate in class Operation
Returns:
The result of the first operand multiplied by the second

Copyright © 2004 Quest Software Inc..
All rights reserved.