public class CountFunction extends Object implements Function
4.1 number count(node-set)
The count function returns the number of nodes in the argument node-set.
public Object call(Context context, List args) throws FunctionCallException
Returns the number of nodes in the specified node-set.
call
インタフェース内 Function
context
- ignoredargs
- the function argumentsDouble
giving the integral number of items in the first argumentFunctionCallException
- if args does not have exactly one
item; or that item is not a List
public static Double evaluate(Object obj) throws FunctionCallException
Returns the number of nodes in the specified node-set.
obj
- a List
of nodesFunctionCallException
- if obj is not a List
Copyright © 2001-2013 Codehaus. All Rights Reserved.