Package org.datanucleus.store.query
Class JPQLSingleStringParser.Parser
java.lang.Object
org.datanucleus.store.query.JPQLSingleStringParser.Parser
- Enclosing class:
JPQLSingleStringParser
Tokenizer that provides access to current token.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseContent
(String keywordToIgnore, boolean allowSubentries) Parse the content until a keyword is found.Parse the next token looking for a keyword.boolean
parseKeywordIgnoreCase
(String keyword) Parse the next token looking for a keyword.
-
Field Details
-
queryString
-
queryStringPos
int queryStringPos -
tokens
tokens -
keywords
keywords -
tokenIndex
int tokenIndexcurrent token cursor position -
allowRange
boolean allowRange
-
-
Constructor Details
-
Parser
Constructor- Parameters:
str
- Query string
-
-
Method Details
-
parseContent
Parse the content until a keyword is found.- Parameters:
keywordToIgnore
- Ignore this keyword if found firstallowSubentries
- Whether to permit subentries (in parentheses) in this next block- Returns:
- the content
-
parseKeywordIgnoreCase
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
-