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.Object
Tokenizer that provides access to current token.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
extended
(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 extended)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
parseContent(boolean allowSubentries)
Parse the content until a keyword is foundjava.lang.String
parseKeyword()
Parse the next token looking for a keyword.boolean
parseKeyword(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
-
-