public class XPathFunctionContext extends SimpleFunctionContext
FunctionContext
implementing the core XPath
function library, plus Jaxen extensions.
The core XPath function library is provided through this
implementation of FunctionContext
. Additionally,
extension functions have been provided, as enumerated below.
This class is re-entrant and thread-safe. If using the
default instance, it is inadvisable to call
SimpleFunctionContext.registerFunction(String, String, Function)
as that will extend the global function context, affecting other
users.
Extension functions:
FunctionContext
,
org.jaxen.function
,
org.jaxen.function.xslt
,
org.jaxen.function.ext
Modifier and Type | Field and Description |
---|---|
private static XPathFunctionContext |
instance |
Constructor and Description |
---|
XPathFunctionContext()
Create a new XPath function context.
|
XPathFunctionContext(boolean includeExtensionFunctions)
Create a new XPath function context.
|
Modifier and Type | Method and Description |
---|---|
static FunctionContext |
getInstance()
Retrieve the default function context
|
private void |
registerExtensionFunctions() |
private void |
registerXPathFunctions() |
private void |
registerXSLTFunctions() |
getFunction, registerFunction
private static XPathFunctionContext instance
public XPathFunctionContext()
public XPathFunctionContext(boolean includeExtensionFunctions)
includeExtensionFunctions
- if true extension functions are included;
if false, they aren'tpublic static FunctionContext getInstance()
private void registerXPathFunctions()
private void registerXSLTFunctions()
private void registerExtensionFunctions()