Package org.datanucleus.store.query
Class JDOQLSingleStringParser.Parser
- java.lang.Object
-
- org.datanucleus.store.query.JDOQLSingleStringParser.Parser
-
- Enclosing class:
- JDOQLSingleStringParser
private static class JDOQLSingleStringParser.Parser extends java.lang.ObjectTokenizer that provides access to current token.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanextended(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 extended)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringparseContent(boolean allowSubentries)Parse the content until a keyword is foundjava.lang.StringparseKeyword()Parse the next token looking for a keyword.booleanparseKeyword(java.lang.String keyword)Parse the next token looking for a keyword.
-
-
-
Method Detail
-
parseContent
public java.lang.String parseContent(boolean allowSubentries)
Parse the content until a keyword is found- Parameters:
allowSubentries- Whether to permit subentries (in parentheses) in this next block- Returns:
- the content
-
parseKeyword
public boolean parseKeyword(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
-
-