public class MandatoryWarningHandler extends Object
This is NOT part of any supported API. 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.
Constructor and Description |
---|
MandatoryWarningHandler(Log log,
boolean verbose,
boolean enforceMandatory,
String prefix,
Lint.LintCategory lc)
Create a handler for mandatory warnings.
|
Modifier and Type | Method and Description |
---|---|
void |
report(JCDiagnostic.DiagnosticPosition pos,
String msg,
Object... args)
Report a mandatory warning.
|
void |
reportDeferredDiagnostic()
Report any diagnostic that might have been deferred by previous calls of report().
|
public MandatoryWarningHandler(Log log, boolean verbose, boolean enforceMandatory, String prefix, Lint.LintCategory lc)
log
- The log on which to generate any diagnosticsverbose
- Specify whether or not detailed messages about
individual instances should be given, or whether an aggregate
message should be generated at the end of the compilation.
Typically set via -Xlint:option.enforceMandatory
- True if mandatory warnings and notes are being enforced.prefix
- A common prefix for the set of message keys for
the messages that may be generated.lc
- An associated lint category for the warnings, or null if none.public void report(JCDiagnostic.DiagnosticPosition pos, String msg, Object... args)
public void reportDeferredDiagnostic()
Copyright © 2017 earcam. All rights reserved.