Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.jxpath
Interface Function  view Function download Function.java


public interface Function

Extension function interface. Extension functions are grouped into Functions objects, which are installed on JXPathContexts using the JXPathContext.setFunctions() 55 call.

The Function interface can be implemented directly. However, most of the time JXPath's built-in implementations should suffice. See ClassFunctions and PackageFunctions.

Version:
$Revision: 1.7 $ $Date: 2004/02/29 14:17:42 $

Method Summary
 java.lang.Object invoke(ExpressionContext context, java.lang.Object[] parameters)
          Computes the value of the function.
 

Method Detail

invoke

public 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.