Class MethodFunction

java.lang.Object
org.apache.commons.jxpath.functions.MethodFunction
All Implemented Interfaces:
Function

public class MethodFunction extends Object implements Function
An XPath extension function implemented as an individual Java method.
  • Constructor Details Link icon

    • MethodFunction Link icon

      public MethodFunction(Method method)
      Constructs a new MethodFunction.
      Parameters:
      method - implementing Method
  • Method Details Link icon

    • invoke Link icon

      public Object invoke(ExpressionContext context, Object[] parameters)
      Description copied from interface: Function
      Computes the value of the function. Each implementation of Function is responsible for conversion of supplied parameters to the required argument types.
      Specified by:
      invoke in interface Function
      Parameters:
      context - can be used to acquire the context in which the function is being evaluted.
      parameters - function arguments
      Returns:
      Object result
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object