1 Clazz.declarePackage ("java.text");
\r
2 c$ = Clazz.decorateAsClass (function () {
\r
4 this.errorIndex = -1;
\r
5 Clazz.instantialize (this, arguments);
\r
6 }, java.text, "ParsePosition");
\r
7 Clazz.defineMethod (c$, "getIndex",
\r
11 Clazz.defineMethod (c$, "setIndex",
\r
15 Clazz.makeConstructor (c$,
\r
19 Clazz.defineMethod (c$, "setErrorIndex",
\r
21 this.errorIndex = ei;
\r
23 Clazz.defineMethod (c$, "getErrorIndex",
\r
25 return this.errorIndex;
\r
27 Clazz.overrideMethod (c$, "equals",
\r
29 if (obj == null) return false;
\r
30 if (!(Clazz.instanceOf (obj, java.text.ParsePosition))) return false;
\r
32 return (this.index == other.index && this.errorIndex == other.errorIndex);
\r
34 Clazz.overrideMethod (c$, "hashCode",
\r
36 return (this.errorIndex << 16) | this.index;
\r
38 Clazz.overrideMethod (c$, "toString",
\r
40 return this.getClass ().getName () + "[index=" + this.index + ",errorIndex=" + this.errorIndex + ']';
\r