SmartFrog 3.10.000

org.smartfrog.sfcore.languages.sf.functions
Class Product

java.lang.Object
  extended by org.smartfrog.sfcore.languages.sf.functions.BaseFunction
      extended by org.smartfrog.sfcore.languages.sf.functions.BaseOperator
          extended by org.smartfrog.sfcore.languages.sf.functions.Product
All Implemented Interfaces:
Function

public class Product
extends BaseOperator

Defines the Product function that multiplies each of its attributes with the same semantics as Java for its primitive types, failure will result in an exception.


Field Summary
 
Fields inherited from class org.smartfrog.sfcore.languages.sf.functions.BaseFunction
context, name
 
Constructor Summary
Product()
           
 
Method Summary
protected  java.lang.Object doOperator(java.lang.Object a, java.lang.Object b)
          Sums two numbers.
 
Methods inherited from class org.smartfrog.sfcore.languages.sf.functions.BaseOperator
doFunction
 
Methods inherited from class org.smartfrog.sfcore.languages.sf.functions.BaseFunction
doit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Product

public Product()
Method Detail

doOperator

protected java.lang.Object doOperator(java.lang.Object a,
                                      java.lang.Object b)
                               throws SmartFrogCompileResolutionException
Sums two numbers.

Specified by:
doOperator in class BaseOperator
Parameters:
a - first number
b - second number
Returns:
product
Throws:
SmartFrogCompileResolutionException - if one of the parameters is not a Number

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP