|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaxen.function.PositionFunction
4.1 number position()
The position function returns a number equal to the context position from the expression evaluation context.
Constructor Summary | |
PositionFunction()
Create a new PositionFunction object. |
Method Summary | |
java.lang.Object |
call(Context context,
java.util.List args)
Returns the position of the context node in the context node-set. |
static java.lang.Double |
evaluate(Context context)
Returns the position of the context node 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 PositionFunction()
PositionFunction
object.
Method Detail |
public java.lang.Object call(Context context, java.util.List args) throws FunctionCallException
call
in interface Function
context
- the context at the point in the
expression where the function is calledargs
- an empty list
Double
containing the context position
FunctionCallException
- if args
is not emptyContext.getSize()
public static java.lang.Double evaluate(Context context)
context
- the context at the point in the
expression where the function is called
Double
containing the context positionContext.getPosition()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |