|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaxen.function.CountFunction
public class CountFunction
4.1 number count(node-set)
The count function returns the number of nodes in the argument node-set.
| Constructor Summary | |
|---|---|
CountFunction()
Create a new CountFunction object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
call(Context context,
java.util.List args)
Returns the number of nodes in the specified node-set. |
static java.lang.Double |
evaluate(java.lang.Object obj)
Returns the number of nodes in the specified node-set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CountFunction()
CountFunction object.
| Method Detail |
|---|
public java.lang.Object call(Context context,
java.util.List args)
throws FunctionCallException
Returns the number of nodes in the specified node-set.
call in interface Functioncontext - ignoredargs - the function arguments
Double giving the integral number of items in the first argument
FunctionCallException - if args does not have exactly one
item; or that item is not a List
public static java.lang.Double evaluate(java.lang.Object obj)
throws FunctionCallException
Returns the number of nodes in the specified node-set.
obj - a List of nodes
FunctionCallException - if obj is not a List
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||