Class CountFunction
java.lang.Object
org.jaxen.function.CountFunction
- All Implemented Interfaces:
Function
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CountFunction
public CountFunction()Create a newCountFunctionobject.
-
-
Method Details
-
call
Returns the number of nodes in the specified node-set.
- Specified by:
callin interfaceFunction- Parameters:
context- ignoredargs- the function arguments- Returns:
- a
Doublegiving the integral number of items in the first argument - Throws:
FunctionCallException- if args does not have exactly one item; or that item is not aList
-
evaluate
Returns the number of nodes in the specified node-set.
- Parameters:
obj- aListof nodes- Returns:
- the integral number of items in the list
- Throws:
FunctionCallException- if obj is not aList
-