public class XPathReader extends Object implements XPathReader
XPathReader which
generates callbacks to an XPathHandler.| Modifier and Type | Field and Description |
|---|---|
static int |
AND |
static int |
AT |
static int |
COLON |
static int |
COMMA |
static int |
DIV |
static int |
DOLLAR |
static int |
DOT |
static int |
DOT_DOT |
static int |
DOUBLE |
static int |
DOUBLE_COLON |
static int |
DOUBLE_SLASH |
static int |
EOF |
static int |
EQUALS |
static int |
GREATER_THAN |
static int |
GREATER_THAN_EQUALS |
static int |
IDENTIFIER |
static int |
INTEGER |
static int |
LEFT_BRACKET |
static int |
LEFT_PAREN |
static int |
LESS_THAN |
static int |
LESS_THAN_EQUALS |
static int |
LITERAL |
static int |
MINUS |
static int |
MOD |
static int |
NOT |
static int |
NOT_EQUALS |
static int |
OR |
static int |
PIPE |
static int |
PLUS |
static int |
RIGHT_BRACKET |
static int |
RIGHT_PAREN |
static int |
SKIP |
static int |
SLASH |
static int |
STAR |
| Constructor and Description |
|---|
XPathReader() |
| Modifier and Type | Method and Description |
|---|---|
XPathHandler |
getXPathHandler()
Retrieve the current
XPathHandler
which receives the event callbacks. |
void |
parse(String xpath)
Perform parsing of the textual XPath expression,
and produce event callbacks to an
XPathHandler. |
void |
setXPathHandler(XPathHandler handler)
Set the
XPathHandler to receive
event callbacks during the parse. |
public static final int LEFT_PAREN
public static final int RIGHT_PAREN
public static final int LEFT_BRACKET
public static final int RIGHT_BRACKET
public static final int PLUS
public static final int MINUS
public static final int LESS_THAN
public static final int LESS_THAN_EQUALS
public static final int GREATER_THAN
public static final int GREATER_THAN_EQUALS
public static final int SLASH
public static final int DOUBLE_SLASH
public static final int DOT
public static final int DOT_DOT
public static final int IDENTIFIER
public static final int AT
public static final int PIPE
public static final int COLON
public static final int DOUBLE_COLON
public static final int STAR
public static final int EQUALS
public static final int NOT_EQUALS
public static final int NOT
public static final int DIV
public static final int MOD
public static final int DOLLAR
public static final int LITERAL
public static final int AND
public static final int OR
public static final int INTEGER
public static final int DOUBLE
public static final int COMMA
public static final int SKIP
public static final int EOF
public void setXPathHandler(XPathHandler handler)
SAXPathEventSourceXPathHandler to receive
event callbacks during the parse.setXPathHandler in interface SAXPathEventSourcehandler - The handler to receive callbacks.public XPathHandler getXPathHandler()
SAXPathEventSourceXPathHandler
which receives the event callbacks.getXPathHandler in interface SAXPathEventSourceXPathHandler.public void parse(String xpath) throws SAXPathException
XPathReaderXPathHandler.parse in interface XPathReaderxpath - The textual XPath expression to parse.SAXPathException - In the event an error occurs.Copyright © 2013. All Rights Reserved.