Lines Matching refs:index
22 * index can be set to the position where the error occurred without having to
30 * Constructs a new {@code ParsePosition} with the specified index.
32 * @param index
33 * the index to begin parsing.
35 public ParsePosition(int index) {
36 currentPosition = index;
42 * instance of {@code ParsePosition} and it must have the same index and
43 * error index.
62 * Returns the index at which the parse could not continue.
64 * @return the index of the parse error or -1 if there is no error.
85 * Sets the index at which the parse could not continue.
87 * @param index
88 * the index of the parse error.
90 public void setErrorIndex(int index) {
91 errorIndex = index;
97 * @param index
100 public void setIndex(int index) {
101 currentPosition = index;
111 return getClass().getName() + "[index=" + currentPosition //$NON-NLS-1$