com.sun.tools.javac.code
Enum Lint.LintCategory

java.lang.Object
  extended by java.lang.Enum<Lint.LintCategory>
      extended by com.sun.tools.javac.code.Lint.LintCategory
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Lint.LintCategory>
Enclosing class:
Lint

public static enum Lint.LintCategory
extends java.lang.Enum<Lint.LintCategory>

Categories of warnings that can be generated by the compiler.


Enum Constant Summary
CAST
          Warn about use of unnecessary casts.
DEP_ANN
          Warn about items which are documented with an @deprecated JavaDoc comment, but which do not have @Deprecated annotation.
DEPRECATION
          Warn about use of deprecated items.
DIVZERO
          Warn about division by constant integer 0.
EMPTY
          Warn about empty statement after if.
FALLTHROUGH
          Warn about falling through from one case of a switch statement to the next.
FINALLY
          Warn about finally clauses that do not terminate normally.
OVERRIDES
          Warn about issues regarding method overrides.
PATH
          Warn about invalid path elements on the command line.
PROCESSING
          Warn about issues regarding annotation processing.
RAW
          Warn about unchecked operations on raw types.
SERIAL
          Warn about Serializable classes that do not provide a serial version ID.
UNCHECKED
          Warn about unchecked operations on raw types.
 
Field Summary
 java.lang.String option
           
 
Method Summary
(package private) static Lint.LintCategory get(java.lang.String option)
           
static Lint.LintCategory valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Lint.LintCategory[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CAST

public static final Lint.LintCategory CAST
Warn about use of unnecessary casts.


DEPRECATION

public static final Lint.LintCategory DEPRECATION
Warn about use of deprecated items.


DEP_ANN

public static final Lint.LintCategory DEP_ANN
Warn about items which are documented with an @deprecated JavaDoc comment, but which do not have @Deprecated annotation.


DIVZERO

public static final Lint.LintCategory DIVZERO
Warn about division by constant integer 0.


EMPTY

public static final Lint.LintCategory EMPTY
Warn about empty statement after if.


FALLTHROUGH

public static final Lint.LintCategory FALLTHROUGH
Warn about falling through from one case of a switch statement to the next.


FINALLY

public static final Lint.LintCategory FINALLY
Warn about finally clauses that do not terminate normally.


OVERRIDES

public static final Lint.LintCategory OVERRIDES
Warn about issues regarding method overrides.


PATH

public static final Lint.LintCategory PATH
Warn about invalid path elements on the command line. Such warnings cannot be suppressed with the SuppressWarnings annotation.


PROCESSING

public static final Lint.LintCategory PROCESSING
Warn about issues regarding annotation processing.


SERIAL

public static final Lint.LintCategory SERIAL
Warn about Serializable classes that do not provide a serial version ID.


UNCHECKED

public static final Lint.LintCategory UNCHECKED
Warn about unchecked operations on raw types.


RAW

public static final Lint.LintCategory RAW
Warn about unchecked operations on raw types.

Field Detail

option

public final java.lang.String option
Method Detail

values

public static final Lint.LintCategory[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Lint.LintCategory c : Lint.LintCategory.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Lint.LintCategory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

get

static Lint.LintCategory get(java.lang.String option)