Package org.jaxen.function
Class PositionFunction
java.lang.Object
org.jaxen.function.PositionFunction
- All Implemented Interfaces:
Function
4.1 number position()
The position function returns a number equal to the context position from the expression evaluation context.
- Author:
- bob mcwhirter (bob @ werken.com)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PositionFunction
public PositionFunction()Create a newPositionFunction
object.
-
-
Method Details
-
call
Returns the position of the context node 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 position - Throws:
FunctionCallException
- ifargs
is not empty- See Also:
-
evaluate
Returns the position of the context node in the context node-set.- Parameters:
context
- the context at the point in the expression where the function is called- Returns:
- a
Double
containing the context position - See Also:
-