54 * diagnostic should be presented to the user. For example,
55 * errors might be colored red or prefixed with the word "Error",
56 * while warnings might be colored yellow or prefixed with the
57 * word "Warning". There is no requirement that the Kind
58 * should imply any inherent semantic meaning to the message
59 * of the diagnostic: for example, a tool might provide an
60 * option to report all warnings as errors.
61 */
62 enum Kind {
63 /**
64 * Problem which prevents the tool's normal completion.
65 */
66 ERROR,
67 /**
68 * Problem which does not usually prevent the tool from
69 * completing normally.
70 */
71 WARNING,
72 /**
73 * Problem similar to a warning, but is mandated by the tool's
74 * specification. For example, the Java™ Language
75 * Specification mandates warnings on certain
76 * unchecked operations and the use of deprecated methods.
77 */
78 MANDATORY_WARNING,
79 /**
80 * Informative message from the tool.
81 */
82 NOTE,
83 /**
84 * Diagnostic which does not fit within the other kinds.
85 */
86 OTHER,
87 }
88
89 /**
90 * Used to signal that no position is available.
91 */
92 public final static long NOPOS = -1;
93
94 /**
|
54 * diagnostic should be presented to the user. For example,
55 * errors might be colored red or prefixed with the word "Error",
56 * while warnings might be colored yellow or prefixed with the
57 * word "Warning". There is no requirement that the Kind
58 * should imply any inherent semantic meaning to the message
59 * of the diagnostic: for example, a tool might provide an
60 * option to report all warnings as errors.
61 */
62 enum Kind {
63 /**
64 * Problem which prevents the tool's normal completion.
65 */
66 ERROR,
67 /**
68 * Problem which does not usually prevent the tool from
69 * completing normally.
70 */
71 WARNING,
72 /**
73 * Problem similar to a warning, but is mandated by the tool's
74 * specification. For example, the Java Language
75 * Specification mandates warnings on certain
76 * unchecked operations and the use of deprecated methods.
77 */
78 MANDATORY_WARNING,
79 /**
80 * Informative message from the tool.
81 */
82 NOTE,
83 /**
84 * Diagnostic which does not fit within the other kinds.
85 */
86 OTHER,
87 }
88
89 /**
90 * Used to signal that no position is available.
91 */
92 public final static long NOPOS = -1;
93
94 /**
|