org.apache.commons.jexl3.parser

## Class ParserTokenManager

- java.lang.Object
- - org.apache.commons.jexl3.parser.ParserTokenManager

- All Implemented Interfaces:
    ParserConstants

      public class ParserTokenManager
      extends Object
      implements ParserConstants

  Token Manager.

- - ### Field Summary

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

    - ### Fields inherited from interface org.apache.commons.jexl3.parser.ParserConstants

      `and, AND, and_assign, assign, BREAK, COLON, COMMA, CONTINUE, DEFAULT, DIGIT, div, div_assign, DOT, DOT_ID, DOT_IDENTIFIER, eeq, ELIPSIS, ELSE, ELVIS, EMPTY, ene, EOF, eq, FALSE, FLOAT_LITERAL, FOR, FUNCTION, ge, gt, IDENTIFIER, IF, INTEGER_LITERAL, JXLT_LITERAL, LAMBDA, LBRACKET, LCURLY, le, LETTER, LPAREN, lt, minus, minus_assign, mod, mod_assign, mult, mult_assign, NAN_LITERAL, ne, NEW, not, NULL, or, OR, or_assign, plus, plus_assign, PRAGMA, QMARK, range, RBRACKET, RCURLY, REGISTER, REGISTERS, req, RETURN, rne, RPAREN, SEMICOL, seq, SIZE, sne, STRING_LITERAL, tilda, tokenImage, TRUE, VAR, WHILE, xor, xor_assign`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ParserTokenManager(SimpleCharStream stream)` Constructor.
    `ParserTokenManager(SimpleCharStream stream, int lexState)` Constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Token` | `getNextToken()` Get the next Token.
    `protected Token` | `jjFillToken()`
    `void` | `popDot()`
    `void` | `pushDot()`
    `void` | `ReInit(SimpleCharStream stream)` Reinitialise parser.
    `void` | `ReInit(SimpleCharStream 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.

    - #### jjnewLexState

          public static final int[] jjnewLexState

      Lex State array.

    - #### input_stream

          protected SimpleCharStream input_stream

    - #### curChar

          protected char curChar

  - ### Constructor Detail

    - #### ParserTokenManager

          public ParserTokenManager(SimpleCharStream stream)

      Constructor.

    - #### ParserTokenManager

          public ParserTokenManager(SimpleCharStream stream,
                            int lexState)

      Constructor.

  - ### Method Detail

    - #### pushDot

          public void pushDot()

    - #### popDot

          public void popDot()

    - #### setDebugStream

          public void setDebugStream(PrintStream ds)

      Set debug output.

    - #### ReInit

          public void ReInit(SimpleCharStream stream)

      Reinitialise parser.

    - #### ReInit

          public void ReInit(SimpleCharStream 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.

Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.