org.exolab.adaptx.xpath
public interface XPathExpression
Version: $Revision: 3738 $
| 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.
|
| String | toString()
Returns the XPath expression as a string. |
Parameters: context The XPathContext to use during evaluation.
Returns: The XPathResult (not null).
Throws: XPathException if an error occured while evaluating this expression.
Returns: The type of this expression
Returns: The XPath expression as a string