com.sun.tools.javac.util
Enum BasicDiagnosticFormatter.BasicFormatKind

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

public static enum BasicDiagnosticFormatter.BasicFormatKind
extends java.lang.Enum<BasicDiagnosticFormatter.BasicFormatKind>

This enum contains all the kinds of formatting patterns supported by a basic diagnostic formatter.


Enum Constant Summary
DEFAULT_CLASS_FORMAT
          A format string to be used for diagnostics regarding classfiles
DEFAULT_NO_POS_FORMAT
          A format string to be used for diagnostics without a given position.
DEFAULT_POS_FORMAT
          A format string to be used for diagnostics with a given position.
 
Method Summary
static BasicDiagnosticFormatter.BasicFormatKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BasicDiagnosticFormatter.BasicFormatKind[] 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

DEFAULT_POS_FORMAT

public static final BasicDiagnosticFormatter.BasicFormatKind DEFAULT_POS_FORMAT
A format string to be used for diagnostics with a given position.


DEFAULT_NO_POS_FORMAT

public static final BasicDiagnosticFormatter.BasicFormatKind DEFAULT_NO_POS_FORMAT
A format string to be used for diagnostics without a given position.


DEFAULT_CLASS_FORMAT

public static final BasicDiagnosticFormatter.BasicFormatKind DEFAULT_CLASS_FORMAT
A format string to be used for diagnostics regarding classfiles

Method Detail

values

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

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

valueOf

public static BasicDiagnosticFormatter.BasicFormatKind 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