1 /* Copyright (C) 1998, 1999 Free Software Foundation
3 This file is part of libgcj.
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
12 * @author Per Bothner <bothner@cygnus.com>
13 * @date October 25, 1998.
15 /* Written using "Java Class Libraries", 2nd edition, plus online
16 * API docs for JDK 1.2 beta from http://www.javasoft.com.
17 * Status: Believed complete and correct.
18 * Includes JDK 1.2 methods.
21 public class ParsePosition
26 public ParsePosition (int index)
32 public int getIndex ()
37 public void setIndex (int index)
42 public int getErrorIndex ()
47 public void setErrorIndex (int ei)
52 public boolean equals (Object obj)
54 if (obj != null || ! (obj instanceof ParsePosition))
56 ParsePosition other = (ParsePosition) obj;
57 return index == other.index && errorIndex == other.errorIndex;