95 * Returns the kind of this diagnostic, for example, error or
96 * warning.
97 * @return the kind of this diagnostic
98 */
99 Kind getKind();
100
101 /**
102 * Returns the source object associated with this diagnostic.
103 *
104 * @return the source object associated with this diagnostic.
105 * {@code null} if no source object is associated with the
106 * diagnostic.
107 */
108 S getSource();
109
110 /**
111 * Returns a character offset from the beginning of the source object
112 * associated with this diagnostic that indicates the location of
113 * the problem. In addition, the following must be true:
114 *
115 * <p>{@code getStartPostion() <= getPosition()}
116 * <p>{@code getPosition() <= getEndPosition()}
117 *
118 * @return character offset from beginning of source; {@link
119 * #NOPOS} if {@link #getSource()} would return {@code null} or if
120 * no location is suitable
121 */
122 long getPosition();
123
124 /**
125 * Returns the character offset from the beginning of the file
126 * associated with this diagnostic that indicates the start of the
127 * problem.
128 *
129 * @return offset from beginning of file; {@link #NOPOS} if and
130 * only if {@link #getPosition()} returns {@link #NOPOS}
131 */
132 long getStartPosition();
133
134 /**
135 * Returns the character offset from the beginning of the file
|
95 * Returns the kind of this diagnostic, for example, error or
96 * warning.
97 * @return the kind of this diagnostic
98 */
99 Kind getKind();
100
101 /**
102 * Returns the source object associated with this diagnostic.
103 *
104 * @return the source object associated with this diagnostic.
105 * {@code null} if no source object is associated with the
106 * diagnostic.
107 */
108 S getSource();
109
110 /**
111 * Returns a character offset from the beginning of the source object
112 * associated with this diagnostic that indicates the location of
113 * the problem. In addition, the following must be true:
114 *
115 * <p>{@code getStartPosition() <= getPosition()}
116 * <p>{@code getPosition() <= getEndPosition()}
117 *
118 * @return character offset from beginning of source; {@link
119 * #NOPOS} if {@link #getSource()} would return {@code null} or if
120 * no location is suitable
121 */
122 long getPosition();
123
124 /**
125 * Returns the character offset from the beginning of the file
126 * associated with this diagnostic that indicates the start of the
127 * problem.
128 *
129 * @return offset from beginning of file; {@link #NOPOS} if and
130 * only if {@link #getPosition()} returns {@link #NOPOS}
131 */
132 long getStartPosition();
133
134 /**
135 * Returns the character offset from the beginning of the file
|