public interface Function
Functions objects, which are installed on
JXPathContexts using the
JXPathContext.setFunctions()
call.
The Function interface can be implemented directly. However,
most of the time JXPath's built-in implementations should suffice.
See ClassFunctions and
PackageFunctions.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(ExpressionContext context,
java.lang.Object[] parameters)
Computes the value of the function.
|
java.lang.Object invoke(ExpressionContext context, java.lang.Object[] parameters)
context - can be used to acquire the context in which the
function is being evaluted.parameters - function arguments