com.caucho.xpath
Class XPathFun

java.lang.Object
  extended by com.caucho.xpath.XPathFun
Direct Known Subclasses:
DocumentFun, ExtensionElementFun, ExtensionFunctionFun, FormatNumberFun, KeyFun, SystemPropertyFun, UnparsedEntityFun

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(org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern 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(org.w3c.dom.Node node,
                                      ExprEnvironment env,
                                      AbstractPattern pattern,
                                      java.util.ArrayList args)
                               throws XPathException
Evaluate the function.

Parameters:
pattern - The context pattern.
args - The evaluated arguments
Throws:
XPathException