org.jaxen.function
Class CountFunction
java.lang.Object
org.jaxen.function.CountFunction
- Function
public class CountFunction
extends java.lang.Object
4.1 number count(node-set)
The count function returns the number of nodes in the argument node-set.
- bob mcwhirter (bob @ werken.com)
Object | call(Context context, List args) -
Returns the number of nodes in the specified node-set.
|
static Double | evaluate(Object obj) -
Returns the number of nodes in the specified node-set.
|
CountFunction
public CountFunction()
Create a new CountFunction
object.
call
public Object call(Context context,
List args)
throws FunctionCallException
Returns the number of nodes in the specified node-set.
- call in interface Function
context
- ignoredargs
- the function arguments
- a
Double
giving the integral number of items in the first argument
evaluate
public static Double evaluate(Object obj)
throws FunctionCallException
Returns the number of nodes in the specified node-set.
- the integral number of items in the list