# XPathFunction

public interface **XPathFunction** <br />

`XPathFunction` provides access to XPath functions.

Functions are identified by QName and arity in XPath.

<br />

### Public Method Summary

|---|---|
| abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [evaluate](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/xpath/XPathFunction.html#evaluate(java.util.List))([List](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/List.html) args) Evaluate the function with the specified arguments. |

## Public Methods

#### public abstract [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**evaluate**
([List](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/List.html) args)

<br />

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.

<br />

##### Parameters

| args | The arguments, `null` is a valid value. |
|---|---|

##### Returns

- The result of evaluating the `XPath` function as an `Object`.

##### Throws

| [XPathFunctionException](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/xpath/XPathFunctionException.html) | If `args` cannot be evaluated with this `XPath` function. |
|---|---|