com.sun.tools.javac.api
Enum DiagnosticFormatter.PositionKind

java.lang.Object
  extended by java.lang.Enum<DiagnosticFormatter.PositionKind>
      extended by com.sun.tools.javac.api.DiagnosticFormatter.PositionKind
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DiagnosticFormatter.PositionKind>
Enclosing interface:
DiagnosticFormatter<D extends Diagnostic<?>>

public static enum DiagnosticFormatter.PositionKind
extends java.lang.Enum<DiagnosticFormatter.PositionKind>

This enum defines a set of constants for all the kinds of position that a diagnostic can be asked for. All positions are intended to be relative to a given diagnostic source.


Enum Constant Summary
COLUMN
          Column number
END
          End position
LINE
          Line number
OFFSET
          Offset position
START
          Start position
 
Method Summary
static DiagnosticFormatter.PositionKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DiagnosticFormatter.PositionKind[] 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

START

public static final DiagnosticFormatter.PositionKind START
Start position


END

public static final DiagnosticFormatter.PositionKind END
End position


LINE

public static final DiagnosticFormatter.PositionKind LINE
Line number


COLUMN

public static final DiagnosticFormatter.PositionKind COLUMN
Column number


OFFSET

public static final DiagnosticFormatter.PositionKind OFFSET
Offset position

Method Detail

values

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

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

valueOf

public static DiagnosticFormatter.PositionKind 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