public void accept ( final TokenType tokenType ) { if ( lexer . getCurrentToken ( ) . getType ( ) != tokenType ) { throw new SQLParsingException ( lexer , tokenType ) ; } lexer . nextToken ( ) ; }
Assert current token type should equals input token and go to next token type .