X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjava%2Ftext%2FParsePosition.js;h=6234784aec2d1880fa7f6c754931b13b21dc5daf;hp=cf505a6d27c8d9ebc5fe7949d1e3e3b9ad4833a3;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/java/text/ParsePosition.js b/site/j2s/java/text/ParsePosition.js index cf505a6..6234784 100644 --- a/site/j2s/java/text/ParsePosition.js +++ b/site/j2s/java/text/ParsePosition.js @@ -1,41 +1,41 @@ -Clazz.declarePackage ("java.text"); -c$ = Clazz.decorateAsClass (function () { -this.index = 0; -this.errorIndex = -1; -Clazz.instantialize (this, arguments); -}, java.text, "ParsePosition"); -Clazz.defineMethod (c$, "getIndex", -function () { -return this.index; -}); -Clazz.defineMethod (c$, "setIndex", -function (index) { -this.index = index; -}, "~N"); -Clazz.makeConstructor (c$, -function (index) { -this.index = index; -}, "~N"); -Clazz.defineMethod (c$, "setErrorIndex", -function (ei) { -this.errorIndex = ei; -}, "~N"); -Clazz.defineMethod (c$, "getErrorIndex", -function () { -return this.errorIndex; -}); -Clazz.overrideMethod (c$, "equals", -function (obj) { -if (obj == null) return false; -if (!(Clazz.instanceOf (obj, java.text.ParsePosition))) return false; -var other = obj; -return (this.index == other.index && this.errorIndex == other.errorIndex); -}, "~O"); -Clazz.overrideMethod (c$, "hashCode", -function () { -return (this.errorIndex << 16) | this.index; -}); -Clazz.overrideMethod (c$, "toString", -function () { -return this.getClass ().getName () + "[index=" + this.index + ",errorIndex=" + this.errorIndex + ']'; -}); +Clazz.declarePackage ("java.text"); +c$ = Clazz.decorateAsClass (function () { +this.index = 0; +this.errorIndex = -1; +Clazz.instantialize (this, arguments); +}, java.text, "ParsePosition"); +Clazz.defineMethod (c$, "getIndex", +function () { +return this.index; +}); +Clazz.defineMethod (c$, "setIndex", +function (index) { +this.index = index; +}, "~N"); +Clazz.makeConstructor (c$, +function (index) { +this.index = index; +}, "~N"); +Clazz.defineMethod (c$, "setErrorIndex", +function (ei) { +this.errorIndex = ei; +}, "~N"); +Clazz.defineMethod (c$, "getErrorIndex", +function () { +return this.errorIndex; +}); +Clazz.overrideMethod (c$, "equals", +function (obj) { +if (obj == null) return false; +if (!(Clazz.instanceOf (obj, java.text.ParsePosition))) return false; +var other = obj; +return (this.index == other.index && this.errorIndex == other.errorIndex); +}, "~O"); +Clazz.overrideMethod (c$, "hashCode", +function () { +return (this.errorIndex << 16) | this.index; +}); +Clazz.overrideMethod (c$, "toString", +function () { +return this.getClass ().getName () + "[index=" + this.index + ",errorIndex=" + this.errorIndex + ']'; +});