Parameters
, XPathExpression
public class ErrorFunctionCall extends FunctionCallImpl
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
ERROR_FN |
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 |
---|---|
ErrorFunctionCall() |
Creates a new ErrorFunctionCall
|
Modifier and Type | Method | Description |
---|---|---|
XPathResult |
evaluate(XPathContext context) |
Evaluates the expression and returns the XPath result.
|
void |
setError(java.lang.String error) |
addParameter, getFunctionName, getParameter, getParameterCount, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExprType, getType
public static final java.lang.String ERROR_FN
public XPathResult evaluate(XPathContext context) throws XPathException
context
- The XPathContext to use during evaluation.XPathException
- if an error occured while
evaluating this expression.public void setError(java.lang.String error)