Stay organized with collections
Save and categorize content based on your preferences.
XPathFunction
public
interface
XPathFunction
javax.xml.xpath.XPathFunction
|
XPathFunction
provides access to XPath functions.
Functions are identified by QName and arity in XPath.
Summary
Public methods |
abstract
Object
|
evaluate(List<E> args)
Evaluate the function with the specified arguments.
|
Public methods
evaluate
public abstract Object evaluate (List<E> args)
Evaluate the function with the specified arguments.
To the greatest extent possible, side-effects should be avoided in the
definition of extension functions. The implementation evaluating an
XPath expression is under no obligation to call extension functions in
any particular order or any particular number of times.
Parameters |
args |
List : The arguments, null is a valid value. |
Returns |
Object |
The result of evaluating the XPath function as an Object . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# XPathFunction\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nXPathFunction\n=============\n\n\n`\npublic\n\n\ninterface\nXPathFunction\n`\n\n\n`\n\n\n`\n\n|-------------------------------|\n| javax.xml.xpath.XPathFunction |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\u003cbr /\u003e\n\n`XPathFunction` provides access to XPath functions.\n\nFunctions are identified by QName and arity in XPath.\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[Object](/reference/java/lang/Object) | ` `[evaluate](/reference/javax/xml/xpath/XPathFunction#evaluate(java.util.List))`(`[List](/reference/java/util/List)`\u003cE\u003e args) ` \u003cbr /\u003e Evaluate the function with the specified arguments. |\n\nPublic methods\n--------------\n\n### evaluate\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract Object evaluate (List\u003cE\u003e args)\n```\n\n\u003cbr /\u003e\n\nEvaluate the function with the specified arguments.\n\nTo the greatest extent possible, side-effects should be avoided in the\ndefinition of extension functions. The implementation evaluating an\nXPath expression is under no obligation to call extension functions in\nany particular order or any particular number of times.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|--------------------------------------------------------|\n| `args` | `List`: The arguments, `null` is a valid value. \u003cbr /\u003e |\n\n| Returns ||\n|---------------------------------------|----------------------------------------------------------------------|\n| [Object](/reference/java/lang/Object) | The result of evaluating the `XPath` function as an `Object`. \u003cbr /\u003e |\n\n| Throws ||\n|-----------------------------------------------------------------------------|-----------------------------------------------------------|\n| [XPathFunctionException](/reference/javax/xml/xpath/XPathFunctionException) | If `args` cannot be evaluated with this `XPath` function. |"]]