com.sun.tools.javac.util
Enum MandatoryWarningHandler.DeferredDiagnosticKind

java.lang.Object
  extended by java.lang.Enum<MandatoryWarningHandler.DeferredDiagnosticKind>
      extended by com.sun.tools.javac.util.MandatoryWarningHandler.DeferredDiagnosticKind
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MandatoryWarningHandler.DeferredDiagnosticKind>
Enclosing class:
MandatoryWarningHandler

private static enum MandatoryWarningHandler.DeferredDiagnosticKind
extends java.lang.Enum<MandatoryWarningHandler.DeferredDiagnosticKind>

The kinds of different deferred diagnostics that might be generated if a mandatory warning is suppressed because too many warnings have already been output. The parameter is a fragment used to build an I18N message key for Log.


Enum Constant Summary
ADDITIONAL_IN_FILE
          This kind is used when a single specific file is found to have warnings and when similar warnings have already been reported for the file.
ADDITIONAL_IN_FILES
          This kind is used when multiple files have been found to have warnings, and some of them have had already had specific similar warnings.
IN_FILE
          This kind is used when a single specific file is found to have warnings and no similar warnings have already been given.
IN_FILES
          This kind is used when multiple files have been found to have warnings, and none of them have had any similar warnings.
 
Field Summary
private  java.lang.String value
           
 
Method Summary
(package private)  java.lang.String getKey(java.lang.String prefix)
           
static MandatoryWarningHandler.DeferredDiagnosticKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MandatoryWarningHandler.DeferredDiagnosticKind[] 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

IN_FILE

public static final MandatoryWarningHandler.DeferredDiagnosticKind IN_FILE
This kind is used when a single specific file is found to have warnings and no similar warnings have already been given. It generates a message like: FILE has ISSUES


ADDITIONAL_IN_FILE

public static final MandatoryWarningHandler.DeferredDiagnosticKind ADDITIONAL_IN_FILE
This kind is used when a single specific file is found to have warnings and when similar warnings have already been reported for the file. It generates a message like: FILE has additional ISSUES


IN_FILES

public static final MandatoryWarningHandler.DeferredDiagnosticKind IN_FILES
This kind is used when multiple files have been found to have warnings, and none of them have had any similar warnings. It generates a message like: Some files have ISSUES


ADDITIONAL_IN_FILES

public static final MandatoryWarningHandler.DeferredDiagnosticKind ADDITIONAL_IN_FILES
This kind is used when multiple files have been found to have warnings, and some of them have had already had specific similar warnings. It generates a message like: Some files have additional ISSUES

Field Detail

value

private java.lang.String value
Method Detail

values

public static final MandatoryWarningHandler.DeferredDiagnosticKind[] 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(MandatoryWarningHandler.DeferredDiagnosticKind c : MandatoryWarningHandler.DeferredDiagnosticKind.values())
        System.out.println(c);

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

valueOf

public static MandatoryWarningHandler.DeferredDiagnosticKind 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

getKey

java.lang.String getKey(java.lang.String prefix)