This project has retired. For details please refer to its
Attic page .
SumFunction (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.forms.expression
Class SumFunction
java.lang.Object
org.outerj.expression.AbstractExpression
org.apache.cocoon.forms.expression.SumFunction
All Implemented Interfaces: org.outerj.expression.Expression
public class SumFunction extends org.outerj.expression.AbstractExpression
Sum function. This function returns the sum of all of its argument, but
it accepts Collections or Iterators as arguments. When it finds such an
argument it iterates on all it's values, and try to sum them as well. It
accepts String and any instance of Number.
Fields inherited from class org.outerj.expression.AbstractExpression
arguments, column, line
Methods inherited from class org.outerj.expression.AbstractExpression
addArgument, addArgument, check, checkArgument, checkArguments, checkArgumentsOfSameType, checkNoArguments, getColumn, getLine, setPosition
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
SumFunction
public SumFunction ()
evaluate
public Object evaluate (org.outerj.expression.ExpressionContext context)
throws org.outerj.expression.ExpressionException
Throws:
org.outerj.expression.ExpressionException
getResultType
public Class getResultType ()
getDescription
public String getDescription ()
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.