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 |
---|---|
Object |
invoke(ExpressionContext context,
Object[] parameters)
Computes the value of the function.
|
Object invoke(ExpressionContext context, Object[] parameters)
context
- can be used to acquire the context in which the
function is being evaluted.parameters
- function argumentsCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.