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.ObjectTokenizer that provides access to current token.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanallowRange(package private) java.lang.String[]keywordskeywords(package private) java.lang.StringqueryString(package private) intqueryStringPos(package private) inttokenIndexcurrent token cursor position(package private) java.lang.String[]tokenstokens
-
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.StringparseContent(java.lang.String keywordToIgnore, boolean allowSubentries)Parse the content until a keyword is found.java.lang.StringparseKeyword()Parse the next token looking for a keyword.booleanparseKeywordIgnoreCase(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
-
-