protected Token recoverFromMismatchedToken( TokenStream input,
int ttype,
String text,
int[] follow )
throws RecognitionException {
RecognitionException e = null;
// if next token is what we are looking for then "delete" this token
if ( mismatchIsUnwantedToken( input,
ttype,
text ) ) {
e = new UnwantedTokenException( ttype,