BinaryExpr, EqualityExpr, FilterExpr, GroupedExpression, LocationStep, NodeExpression, PathComponentAbstractPathComponent, BooleanFunctionCall, Concat, Contains, CountFunctionCall, ErrorExpr, ErrorFunctionCall, ExtensionFunctionCall, FalseFunctionCall, FormatNumber, FunctionCall, FunctionCallImpl, IdFunctionCall, IdRefFunctionCall, LangFunctionCall, LastFunctionCall, Normalize, NotFunctionCall, NumberFunctionCall, PathExpr, PositionFunctionCall, PredicateExpr, PrimaryExpr, SelectExpr, StartsWith, StringFunctionCall, StringLength, Substring, SubstringAfter, SubstringBefore, SumFunctionCall, TextFunctionCall, Translate, TrueFunctionCall, UnionExpr, VariableReference, XMLNamesFunctionCallpublic interface XPathExpression
| Modifier and Type | Field | Description |
|---|---|---|
static short |
BOOLEAN |
The Boolean expression type.
|
static short |
ERROR |
Expression of type error.
|
static short |
FILTER_EXPR |
The FilterExpr expression type.
|
static short |
LOCATION_PATH |
The LocationPath expression type.
|
static short |
NODE_TEST |
The NodeTest expressions type
|
static short |
NUMBER |
The NodeTest expressions type
|
static short |
PATH_EXPR |
The PathExpr expression type.
|
static short |
PRIMARY |
The Primary expression type.
|
static short |
STEP |
The Step expression type.
|
static short |
STRING |
The String expression type.
|
static short |
UNION_EXPR |
The union expression type.
|
| Modifier and Type | Method | Description |
|---|---|---|
XPathResult |
evaluate(XPathContext context) |
Evaluates the expression and returns the XPath result.
|
short |
getExprType() |
Returns the type of this expression.
|
java.lang.String |
toString() |
Returns the XPath expression as a string.
|
static final short ERROR
static final short BOOLEAN
static final short FILTER_EXPR
static final short LOCATION_PATH
static final short NODE_TEST
static final short NUMBER
static final short PATH_EXPR
static final short PRIMARY
static final short STEP
static final short STRING
static final short UNION_EXPR
short getExprType()
XPathResult evaluate(XPathContext context) throws XPathException
context - The XPathContext to use during evaluation.XPathException - if an error occured while
evaluating this expression.java.lang.String toString()
XPathExpression object.toString in class java.lang.Object