expectedError = parseExpectedError(expectedTokenStr.substring(errorMark+1));
expectedTokenStr = expectedTokenStr.substring(0, errorMark);
}
if(expectedTokenStr.equals("*")) {
return new TokenChecker(null, expectedError);
} else {
DeeTokens expectedToken = DeeTokens.valueOf(transformTokenNameAliases(expectedTokenStr));
return new TokenChecker(expectedToken, expectedError);
}
} catch(IllegalArgumentException e) {
throw assertFail();
}
}