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