public void skipAll ( final TokenType ... tokenTypes ) { Set < TokenType > tokenTypeSet = Sets . newHashSet ( tokenTypes ) ; while ( tokenTypeSet . contains ( lexer . getCurrentToken ( ) . getType ( ) ) ) { lexer . nextToken ( ) ; } }
Skip all input tokens .