public final class Lexer extends Object
Token
s.Constructor and Description |
---|
Lexer(String oqlQueryString)
Creates a lexer which will seperate a string query into a series of
tokens.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreTokens()
Checks whether the query strin has been fully consumed.
|
Token |
nextToken()
Returns the next
Token from the stream. |
public Lexer(String oqlQueryString)
oqlQueryString
- The string representation of the OQL Querypublic boolean hasMoreTokens()
public Token nextToken() throws InvalidCharException
Token
from the stream.InvalidCharException
- if an invalid character is found while
generating the next Token.Copyright © 2014. All rights reserved.