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

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

public class CountAFunction
extends Object
implements Function

This function counts the number of non-empty values in the list of AnySequences provided. A value is non-blank if it contains any content of any type, including an error.

Author:
Cedric Pronzato
See Also:
Serialized Form

Constructor Summary
CountAFunction()
           
 
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

CountAFunction

public CountAFunction()
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