Package org.apache.cayenne.ejbql.parser

## Class EJBQLTokenManager

- java.lang.Object
- - org.apache.cayenne.ejbql.parser.EJBQLTokenManager

- All Implemented Interfaces:
    `EJBQLConstants`

      public class EJBQLTokenManager
      extends Object
      implements EJBQLConstants

  Token Manager.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected char` | `curChar` |
    `PrintStream` | `debugStream` | Debug output.
    `protected JavaCharStream` | `input_stream` |
    `static String[]` | `jjstrLiteralImages` | Token literal values.
    `static String[]` | `lexStateNames` | Lexer state names.

    - ### Fields inherited from interface org.apache.cayenne.ejbql.parser.EJBQLConstants

      `ABS, ALL, AND, ANY, AS, ASC, AVG, BETWEEN, BOOLEAN_LITERAL, BOTH, BY, CHARACTER_LITERAL, COMMA, CONCAT, COUNT, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, DECIMAL_LITERAL, DEFAULT, DELETE, DESC, DIGIT, DISTINCT, DIV, DOT, EMPTY, EOF, EQ, ESCAPE, EXISTS, EXPONENT, FETCH, FROM, GE, GROUP, GT, HAVING, IDENTIFIER, IN, INNER, INTEGER_LITERAL, IS, JOIN, LE, LEADING, LEFT, LENGTH, LETTER, LIKE, LOCATE, LOWER, LT, MAX, MEMBER, MIN, MINUS, MOD, NE, NEW, NOT, NULL, OBJECT, OF, OR, ORDER, OUTER, PLUS, SELECT, SET, SIZE, SOME, SQRT, STRING_LITERAL, SUBSTRING, SUM, TIMES, tokenImage, TRAILING, TRIM, UPDATE, UPPER, WHERE`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `EJBQLTokenManager​(JavaCharStream stream)` | Constructor.
    `EJBQLTokenManager​(JavaCharStream stream, int lexState)` | Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Token` | `getNextToken()` | Get the next Token.
    `protected Token` | `jjFillToken()` |
    `void` | `ReInit​(JavaCharStream stream)` | Reinitialise parser.
    `void` | `ReInit​(JavaCharStream stream, int lexState)` | Reinitialise parser.
    `void` | `setDebugStream​(PrintStream ds)` | Set debug output.
    `void` | `SwitchTo​(int lexState)` | Switch to specified lex state.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### debugStream

          public PrintStream debugStream

      Debug output.

    - #### jjstrLiteralImages

          public static final String[] jjstrLiteralImages

      Token literal values.

    - #### lexStateNames

          public static final String[] lexStateNames

      Lexer state names.

    - #### input_stream

          protected JavaCharStream input_stream

    - #### curChar

          protected char curChar

  - ### Constructor Detail

    - #### EJBQLTokenManager

          public EJBQLTokenManager​(JavaCharStream stream)

      Constructor.

    - #### EJBQLTokenManager

          public EJBQLTokenManager​(JavaCharStream stream,
                                   int lexState)

      Constructor.

  - ### Method Detail

    - #### setDebugStream

          public void setDebugStream​(PrintStream ds)

      Set debug output.

    - #### ReInit

          public void ReInit​(JavaCharStream stream)

      Reinitialise parser.

    - #### ReInit

          public void ReInit​(JavaCharStream stream,
                             int lexState)

      Reinitialise parser.

    - #### SwitchTo

          public void SwitchTo​(int lexState)

      Switch to specified lex state.

    - #### jjFillToken

          protected Token jjFillToken()

    - #### getNextToken

          public Token getNextToken()

      Get the next Token.