Package org.datanucleus.store.query
Class JDOQLSingleStringParser.Parser
java.lang.Object
org.datanucleus.store.query.JDOQLSingleStringParser.Parser
- Enclosing class:
JDOQLSingleStringParser
Tokenizer that provides access to current token.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseContent
(boolean allowSubentries) Parse the content until a keyword is foundParse the next token looking for a keyword.boolean
parseKeyword
(String keyword) Parse the next token looking for a keyword.
-
Field Details
-
extended
final boolean extended -
queryString
-
queryStringPos
int queryStringPos -
tokens
tokens -
keywords
keywords -
tokenIndex
int tokenIndexcurrent token cursor position
-
-
Constructor Details
-
Parser
Constructor- Parameters:
str
- String to parse
-
-
Method Details
-
parseContent
Parse the content until a keyword is found- Parameters:
allowSubentries
- Whether to permit subentries (in parentheses) in this next block- Returns:
- the content
-
parseKeyword
Parse the next token looking for a keyword. The cursor position is skipped in one tick if a keyword is found- Parameters:
keyword
- the searched keyword- Returns:
- true if the keyword
-
parseKeyword
Parse the next token looking for a keyword. The cursor position is skipped in one tick if a keyword is found- Returns:
- the parsed keyword or null
-