public final class XPathScanner extends Object
Lexical scanner to extract tokens from the query.
This scanner is used to interpret the query. It reads the the query string char by char and specifies the type of the input and creates a token for every logic text unit.
Constructor and Description |
---|
XPathScanner(String mQuery)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
begin()
Returns the beginning of a query that has already been scanned.
|
int |
getPos()
Return the current cursor position in the query.
|
IXPathToken |
lookUpTokens(int paramNext)
Return the token that will be returned by the scanner after the call of
nextToken(), without changing the internal state of the scanner.
|
IXPathToken |
nextToken()
Reads the string char by char and returns one token by call.
|
String |
toString() |
public XPathScanner(String mQuery)
mQuery
- the query to scanpublic IXPathToken nextToken()
public IXPathToken lookUpTokens(int paramNext)
paramNext
- number of next tokens to be readpublic String begin()
public int getPos()
Copyright © 2013. All Rights Reserved.