org.apache.avro.compiler.idl
Class IdlTokenManager

java.lang.Object
  extended by org.apache.avro.compiler.idl.IdlTokenManager
All Implemented Interfaces:
IdlConstants

public class IdlTokenManager
extends Object
implements IdlConstants

Token Manager.


Field Summary
protected  char curChar
           
 PrintStream debugStream
          Debug output.
protected  JavaCharStream 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.avro.compiler.idl.IdlConstants
ARRAY, AT, BOOLEAN, BYTES, CHARACTER_LITERAL, COLON, COMMA, DECIMAL_EXPONENT, DECIMAL_FLOATING_POINT_LITERAL, DECIMAL_LITERAL, DEFAULT, DOC_COMMENT, DOT, DOUBLE, ENUM, EOF, EQUALS, ERROR, FALSE, FIXED, FLOAT, FLOATING_POINT_LITERAL, GT, HEX_LITERAL, HEXADECIMAL_EXPONENT, HEXADECIMAL_FLOATING_POINT_LITERAL, IDENTIFIER, IDL, IMPORT, INT, INTEGER_LITERAL, LBRACE, LBRACK, LETTER, LONG, LPAREN, LT, MAP, MULTI_LINE_COMMENT, NULL, OCTAL_LITERAL, ONEWAY, PART_LETTER, PROTOCOL, RBRACE, RBRACK, RECORD, RPAREN, SCHEMA, SEMICOLON, SINGLE_LINE_COMMENT, STRING, STRING_LITERAL, STUFF_TO_IGNORE, THROWS, TICK, tokenImage, TRUE, UNION, VOID
 
Constructor Summary
IdlTokenManager(JavaCharStream stream)
          Constructor.
IdlTokenManager(JavaCharStream stream, int lexState)
          Constructor.
 
Method Summary
 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.


jjnewLexState

public static final int[] jjnewLexState
Lex State array.


input_stream

protected JavaCharStream input_stream

curChar

protected char curChar
Constructor Detail

IdlTokenManager

public IdlTokenManager(JavaCharStream stream)
Constructor.


IdlTokenManager

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



Copyright © 2011 The Apache Software Foundation. All Rights Reserved.