org.jaxen.function
Class LastFunction
java.lang.Objectorg.jaxen.function.LastFunction
- Function
public class LastFunction
extends java.lang.Object
4.1 number last()
The last function returns a number equal to
the context size from the expression evaluation context.
- bob mcwhirter (bob @ werken.com)
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.
|
LastFunction
public LastFunction()
Create a new LastFunction object.
call
public Object call(Context context,
List args)
throws FunctionCallException Returns the number of nodes in the context node-set.
- call in interface Function
context - the context at the point in the
expression where the function is calledargs - an empty list
- a
Double containing the context size
evaluate
public static Double evaluate(Context context)
Returns the number of nodes in the context node-set.
context - the context at the point in the
expression where the function is called