Package | Description |
---|---|
com.sun.tools.javac.code | |
com.sun.tools.javac.util |
Modifier and Type | Method and Description |
---|---|
static Lint.LintCategory |
Lint.LintCategory.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Lint.LintCategory[] |
Lint.LintCategory.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Lint.isEnabled(Lint.LintCategory lc)
Checks if a warning category is enabled.
|
boolean |
Lint.isSuppressed(Lint.LintCategory lc)
Checks is a warning category has been specifically suppressed, by means
of the SuppressWarnings annotation, or, in the case of the deprecated
category, whether it has been implicitly suppressed by virtue of the
current entity being itself deprecated.
|
Modifier and Type | Method and Description |
---|---|
Lint.LintCategory |
JCDiagnostic.getLintCategory()
Get the associated lint category, or null if none.
|
Modifier and Type | Method and Description |
---|---|
JCDiagnostic |
JCDiagnostic.Factory.create(JCDiagnostic.DiagnosticType kind,
Lint.LintCategory lc,
Set<JCDiagnostic.DiagnosticFlag> flags,
DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
String key,
Object... args)
Create a new diagnostic of the given kind.
|
boolean |
Warner.hasLint(Lint.LintCategory lint) |
boolean |
Warner.hasNonSilentLint(Lint.LintCategory lint) |
boolean |
Warner.hasSilentLint(Lint.LintCategory lint) |
void |
AbstractLog.mandatoryWarning(Lint.LintCategory lc,
JCDiagnostic.DiagnosticPosition pos,
String key,
Object... args)
Report a warning.
|
JCDiagnostic |
JCDiagnostic.Factory.mandatoryWarning(Lint.LintCategory lc,
DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
String key,
Object... args)
Create a warning diagnostic that will not be hidden by the -nowarn or -Xlint:none options.
|
void |
Warner.silentWarn(Lint.LintCategory lint) |
void |
Warner.warn(Lint.LintCategory lint) |
void |
AbstractLog.warning(Lint.LintCategory lc,
JCDiagnostic.DiagnosticPosition pos,
String key,
Object... args)
Report a lint warning, unless suppressed by the -nowarn option or the
maximum number of warnings has been reached.
|
void |
AbstractLog.warning(Lint.LintCategory lc,
String key,
Object... args)
Report a lint warning, unless suppressed by the -nowarn option or the
maximum number of warnings has been reached.
|
JCDiagnostic |
JCDiagnostic.Factory.warning(Lint.LintCategory lc,
DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
String key,
Object... args)
Create a warning diagnostic.
|
JCDiagnostic |
JCDiagnostic.Factory.warning(Lint.LintCategory lc,
String key,
Object... args)
Create a warning diagnostic.
|
Constructor and Description |
---|
JCDiagnostic(DiagnosticFormatter<JCDiagnostic> formatter,
JCDiagnostic.DiagnosticType dt,
Lint.LintCategory lc,
Set<JCDiagnostic.DiagnosticFlag> flags,
DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
String key,
Object... args)
Create a diagnostic object.
|
MandatoryWarningHandler(Log log,
boolean verbose,
boolean enforceMandatory,
String prefix,
Lint.LintCategory lc)
Create a handler for mandatory warnings.
|
Copyright © 2017 earcam. All rights reserved.