| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.jaxen.function.CountFunctionnumber count(node-set)
The count function returns the number of nodes in the argument node-set.
Constructor Summary | |
| |
Method Summary | |
Object | |
static Double |
|
public Object call(Context context, List args) throws FunctionCallException
Returns the number of nodes in the specified node-set.
- 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
public static Double evaluate(Object obj)
throws FunctionCallExceptionReturns 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