|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaxen.function.LastFunction
4.1 number last()
The last function returns a number equal to the context size from the expression evaluation context.
| Constructor Summary | |
LastFunction()
Create a new LastFunction object. |
|
| Method Summary | |
Object |
call(Context context,
List args)
Returns the number of nodes in the context node-set. |
static Double |
evaluate(Context context)
Returns the number of nodes in the context node-set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LastFunction()
LastFunction object.
| Method Detail |
public Object call(Context context,
List args)
throws FunctionCallException
call in interface Functioncontext - the context at the point in the
expression where the function is calledargs - an empty list
Double containing the context size
FunctionCallException - if args is not emptyContext.getSize()public static Double evaluate(Context context)
context - the context at the point in the
expression where the function is called
Context.getSize()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||