Package org.apache.commons.jxpath
Interface Function
-
- All Known Implementing Classes:
ConstructorFunction
,MethodFunction
public interface Function
Extension function interface. Extension functions are grouped intoFunctions
objects, which are installed on JXPathContexts using theJXPathContext.setFunctions()
call.The Function interface can be implemented directly. However, most of the time JXPath's built-in implementations should suffice. See
ClassFunctions
andPackageFunctions
.- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
invoke(ExpressionContext context, java.lang.Object[] parameters)
Computes the value of the function.
-
-
-
Method Detail
-
invoke
java.lang.Object invoke(ExpressionContext context, java.lang.Object[] parameters)
Computes the value of the function. Each implementation of Function is responsible for conversion of supplied parameters to the required argument types.- Parameters:
context
- can be used to acquire the context in which the function is being evaluted.parameters
- function arguments- Returns:
- Object result
-
-