| java.lang.Object com.sun.tools.javac.util.MandatoryWarningHandler
MandatoryWarningHandler | public class MandatoryWarningHandler (Code) | | A handler to process mandatory warnings, setting up a deferred diagnostic
to be printed at the end of the compilation if some warnings get suppressed
because too many warnings have already been generated.
Note that the SuppressWarnings annotation can be used to suppress warnings
about conditions that would otherwise merit a warning. Such processing
is done when the condition is detected, and in those cases, no call is
made on any API to generate a warning at all. In consequence, this handler only
gets to handle those warnings that JLS says must be generated.
This is NOT part of any API supported by Sun Microsystems. If
you write code that depends on this, you do so at your own risk.
This code and its internal interfaces are subject to change or
deletion without notice.
|
Method Summary | |
public void | report(DiagnosticPosition pos, String msg, Object... args) Report a mandatory warning. | public void | reportDeferredDiagnostic() Report any diagnostic that might have been deferred by previous calls of report(). |
MandatoryWarningHandler | public MandatoryWarningHandler(Log log, boolean verbose, String prefix)(Code) | | Create a handler for mandatory warnings.
Parameters: log - The log on which to generate any diagnostics Parameters: verbose - Specify whether or not detailed messages aboutindividual instances should be given, or whether an aggregatemessage should be generated at the end of the compilation.Typically set via -Xlint:option. Parameters: prefix - A common prefix for the set of message keys forthe messages that may be generated. |
report | public void report(DiagnosticPosition pos, String msg, Object... args)(Code) | | Report a mandatory warning.
|
reportDeferredDiagnostic | public void reportDeferredDiagnostic()(Code) | | Report any diagnostic that might have been deferred by previous calls of report().
|
|
|