Parameters
, XPathExpression
public class ExtensionFunctionCall extends FunctionCallImpl
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
FUNCTION_NOT_DEFINED |
INVALID_NUMBER_PARAMS, INVALID_RESULT
EXPR, FUNCTION_CALL, LITERAL, NUMBER, VARIABLE_REFERENCE
BOOLEAN, ERROR, FILTER_EXPR, LOCATION_PATH, NODE_TEST, PATH_EXPR, PRIMARY, STEP, STRING, UNION_EXPR
Constructor | Description |
---|---|
ExtensionFunctionCall(java.lang.String name) |
Creates a new ExtensionFunctionCall for the
function with the given name
|
Modifier and Type | Method | Description |
---|---|---|
XPathResult |
evaluate(XPathContext context) |
Evaluates the expression and returns the XPath result.
|
addParameter, getFunctionName, getParameter, getParameterCount, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExprType, getType
public static final java.lang.String FUNCTION_NOT_DEFINED
public ExtensionFunctionCall(java.lang.String name)
name
- the name of the function to call
when the execute method is invoked.public XPathResult evaluate(XPathContext context) throws XPathException
context
- The XPathContext to use during evaluation.XPathException
- if an error occured while
evaluating this expression.