com.caucho.xpath
Class XPathFun

java.lang.Object
  |
  +--com.caucho.xpath.XPathFun

public abstract class XPathFun
extends java.lang.Object

Base class for XPath functions. The custom functions can use the Expr.toBoolean, etc. functions to convert to normal Java types.


Constructor Summary
XPathFun()
           
 
Method Summary
abstract  java.lang.Object eval(Node node, Env env, Node context, Pattern pattern, java.util.ArrayList args)
          Evaluate the function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathFun

public XPathFun()
Method Detail

eval

public abstract java.lang.Object eval(Node node,
                                      Env env,
                                      Node context,
                                      Pattern pattern,
                                      java.util.ArrayList args)
Evaluate the function.
Parameters:
pattern - The context pattern.
args - The evaluated arguments