|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XPathExpression
Interface representing an XPath expression. An XPath expression is thread-safe and can be evaluated multiple times concurrently. It is a compiled version of the textual XPath expression and can be cached for later use.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
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
Method Detail |
---|
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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |