Save This Page
Home » openjdk-7 » com.sun.tools » javac » code » [javadoc | source]
com.sun.tools.javac.code
public class: Lint [javadoc | source]
java.lang.Object
   com.sun.tools.javac.code.Lint
A class for handling -Xlint suboptions and @SuppresssWarnings.

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.
Nested Class Summary:
public enum class  Lint.LintCategory  Categories of warnings that can be generated by the compiler. 
protected static class  Lint.AugmentVisitor   
Field Summary
protected static final  Key<Lint> lintKey    The context key for the root Lint object. 
Constructor:
 protected Lint(Context context) 
 protected Lint(Lint other) 
Method from com.sun.tools.javac.code.Lint Summary:
augment,   augment,   augment,   instance,   isEnabled,   isSuppressed,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.code.Lint Detail:
 public Lint augment(Compound attr) 
    Returns the result of combining the values in this object with the given annotation.
 public Lint augment(List<Compound> attrs) 
    Returns the result of combining the values in this object with the given annotations.
 public Lint augment(List<Compound> attrs,
    long flags) 
    Returns the result of combining the values in this object with the given annotations and flags.
 public static Lint instance(Context context) 
    Get the root Lint instance.
 public boolean isEnabled(LintCategory lc) 
    Checks if a warning category is enabled. A warning category may be enabled on the command line, or by default, and can be temporarily disabled with the SuppressWarnings annotation.
 public boolean isSuppressed(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.
 public String toString()