com.puppycrawl.tools.checkstyle
private static final class TreeWalker.SilentJavaRecognizer extends GeneratedJavaRecognizer
assert
). We must not write any error messages when
parsing fails because with the next grammar it might succeed
and the user will be confused.
Constructor Summary | |
---|---|
SilentJavaRecognizer(TokenStream aLexer)
Creates a new SilentJavaRecognizer instance.
|
Method Summary | |
---|---|
void | reportError(RecognitionException aRex)
Parser error-reporting function, does nothing. |
void | reportError(String aMsg)
Parser error-reporting function, does nothing. |
void | reportWarning(String aMsg)
Parser warning-reporting function, does nothing. |
SilentJavaRecognizer
instance.
Parameters: aLexer the tokenstream the recognizer operates on.
Parameters: aRex the exception to be reported
Parameters: aMsg the error message
Parameters: aMsg the error message