Class JDOQLSingleStringParser.Parser

java.lang.Object
org.datanucleus.store.query.JDOQLSingleStringParser.Parser
Enclosing class:
JDOQLSingleStringParser

private static class JDOQLSingleStringParser.Parser extends Object
Tokenizer that provides access to current token.
  • Field Details

    • extended

      final boolean extended
    • queryString

      final String queryString
    • queryStringPos

      int queryStringPos
    • tokens

      final String[] tokens
      tokens
    • keywords

      final String[] keywords
      keywords
    • tokenIndex

      int tokenIndex
      current token cursor position
  • Constructor Details

    • Parser

      public Parser(String str, boolean extended)
      Constructor
      Parameters:
      str - String to parse
  • Method Details

    • parseContent

      public 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(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 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