public class Lint 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.
Modifier and Type | Class and Description |
---|---|
protected static class |
Lint.AugmentVisitor |
static class |
Lint.LintCategory
Categories of warnings that can be generated by the compiler.
|
Modifier and Type | Field and Description |
---|---|
protected static Context.Key<Lint> |
lintKey
The context key for the root Lint object.
|
Modifier | Constructor and Description |
---|---|
protected |
Lint(Context context) |
protected |
Lint(Lint other) |
Modifier and Type | Method and Description |
---|---|
Lint |
augment(Attribute.Compound attr)
Returns the result of combining the values in this object with
the given annotation.
|
Lint |
augment(Symbol sym)
Returns the result of combining the values in this object with
the metadata on the given symbol.
|
static Lint |
instance(Context context)
Get the root Lint instance.
|
boolean |
isEnabled(Lint.LintCategory lc)
Checks if a warning category is enabled.
|
boolean |
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.
|
String |
toString() |
protected static final Context.Key<Lint> lintKey
public Lint augment(Attribute.Compound attr)
public Lint augment(Symbol sym)
public boolean isEnabled(Lint.LintCategory lc)
public boolean isSuppressed(Lint.LintCategory lc)
Copyright © 2017 earcam. All rights reserved.