org.pentaho.reporting.libraries.formula.function.information
Class CountFunction

java.lang.Object
  extended by org.pentaho.reporting.libraries.formula.function.information.CountFunction
All Implemented Interfaces:
Serializable, Function

public class CountFunction
extends Object
implements Function

This function counts the numbers in the list of NumberSequences provided. Only numbers in references are counted; all other types are ignored. Errors are not propagated.

Author:
Cedric Pronzato
See Also:
Serialized Form

Constructor Summary
CountFunction()
           
 
Method Summary
 TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters)
           
 String getCanonicalName()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountFunction

public CountFunction()
Method Detail

getCanonicalName

public String getCanonicalName()
Specified by:
getCanonicalName in interface Function

evaluate

public TypeValuePair evaluate(FormulaContext context,
                              ParameterCallback parameters)
                       throws EvaluationException
Specified by:
evaluate in interface Function
Throws:
EvaluationException