Package org.jaxen.function
Class LastFunction
java.lang.Object
org.jaxen.function.LastFunction
- All Implemented Interfaces:
Function
4.1 number last()
The last function returns a number equal to the context size from the expression evaluation context.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LastFunction
public LastFunction()Create a newLastFunction
object.
-
-
Method Details
-
call
Returns the number of nodes in the context node-set.- Specified by:
call
in interfaceFunction
- Parameters:
context
- the context at the point in the expression where the function is calledargs
- an empty list- Returns:
- a
Double
containing the context size - Throws:
FunctionCallException
- ifargs
is not empty- See Also:
-
evaluate
Returns the number of nodes in the context node-set.- Parameters:
context
- the context at the point in the expression where the function is called- Returns:
- the context size
- See Also:
-