Package org.datanucleus.store.query
Class JPQLSingleStringParser.Parser
- java.lang.Object
-
- org.datanucleus.store.query.JPQLSingleStringParser.Parser
-
- Enclosing class:
- JPQLSingleStringParser
private static class JPQLSingleStringParser.Parser extends java.lang.Object
Tokenizer that provides access to current token.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
allowRange
(package private) java.lang.String[]
keywords
keywords(package private) java.lang.String
queryString
(package private) int
queryStringPos
(package private) int
tokenIndex
current token cursor position(package private) java.lang.String[]
tokens
tokens
-
Constructor Summary
Constructors Constructor Description Parser(java.lang.String str, boolean allowRange)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
parseContent(java.lang.String keywordToIgnore, boolean allowSubentries)
Parse the content until a keyword is found.java.lang.String
parseKeyword()
Parse the next token looking for a keyword.boolean
parseKeywordIgnoreCase(java.lang.String keyword)
Parse the next token looking for a keyword.
-
-
-
Method Detail
-
parseContent
public java.lang.String parseContent(java.lang.String keywordToIgnore, boolean allowSubentries)
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
public boolean parseKeywordIgnoreCase(java.lang.String keyword)
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
public java.lang.String 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
-
-