org.exolab.castor.jdo.oql
public class Lexer extends Object implements TokenTypes
Version: $Revision: 1.3 $ $Date: 2004/08/13 10:05:49 $
Field Summary | |
---|---|
boolean | endOfQueryPassed |
Hashtable | keywords |
int | _pos |
String | _queryString |
Constructor Summary | |
---|---|
Lexer(String oqlQueryString)
Creates a lexer which will seperate a string query into a series of
tokens.
|
Method Summary | |
---|---|
boolean | hasMoreTokens()
Checks whether the query strin has been fully consumed.
|
Token | nextToken()
Returns the next Token from the stream.
|
Parameters: oqlQueryString The string representation of the OQL Query
Returns: True if there is text in the query which hasn't been tokenized, otherwise false.
Returns: The next token in the stream.
Throws: NoMoreTokensException if the last character was already consumed. InvalidCharException if an invalid character is found while generating the next Token.