X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjalview%2Fdatamodel%2FAlignedCodon.js;h=3b956472beea5e3bf4b4bf4a601ba5a4f57ff964;hp=d02ac8a20f12894c8ff9d1ec422b7f4767dbad81;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/jalview/datamodel/AlignedCodon.js b/site/j2s/jalview/datamodel/AlignedCodon.js index d02ac8a..3b95647 100644 --- a/site/j2s/jalview/datamodel/AlignedCodon.js +++ b/site/j2s/jalview/datamodel/AlignedCodon.js @@ -1,42 +1,42 @@ -Clazz.declarePackage ("jalview.datamodel"); -Clazz.load (null, "jalview.datamodel.AlignedCodon", ["java.lang.IllegalArgumentException", "$.StringBuilder"], function () { -c$ = Clazz.decorateAsClass (function () { -this.pos1 = 0; -this.pos2 = 0; -this.pos3 = 0; -this.product = null; -Clazz.instantialize (this, arguments); -}, jalview.datamodel, "AlignedCodon"); -Clazz.makeConstructor (c$, -function (i, j, k) { -this.construct (i, j, k, null); -}, "~N,~N,~N"); -Clazz.makeConstructor (c$, -function (i, j, k, prod) { -this.pos1 = i; -this.pos2 = j; -this.pos3 = k; -this.product = prod; -}, "~N,~N,~N,~S"); -Clazz.defineMethod (c$, "getBaseColumn", -function (base) { -if (base < 1 || base > 3) { -throw new IllegalArgumentException (Integer.toString (base)); -}return base == 1 ? this.pos1 : (base == 2 ? this.pos2 : this.pos3); -}, "~N"); -Clazz.overrideMethod (c$, "equals", -function (o) { -if (o == null) { -return true; -}if (!(Clazz.instanceOf (o, jalview.datamodel.AlignedCodon))) { -return false; -}var ac = o; -return (this.pos1 == ac.pos1 && this.pos2 == ac.pos2 && this.pos3 == ac.pos3); -}, "~O"); -Clazz.overrideMethod (c$, "toString", -function () { -var sb = new StringBuilder (); -sb.append ("[").append (this.pos1).append (", ").append (this.pos2).append (", ").append (this.pos3).append ("]"); -return sb.toString (); -}); -}); +Clazz.declarePackage ("jalview.datamodel"); +Clazz.load (null, "jalview.datamodel.AlignedCodon", ["java.lang.IllegalArgumentException", "$.StringBuilder"], function () { +c$ = Clazz.decorateAsClass (function () { +this.pos1 = 0; +this.pos2 = 0; +this.pos3 = 0; +this.product = null; +Clazz.instantialize (this, arguments); +}, jalview.datamodel, "AlignedCodon"); +Clazz.makeConstructor (c$, +function (i, j, k) { +this.construct (i, j, k, null); +}, "~N,~N,~N"); +Clazz.makeConstructor (c$, +function (i, j, k, prod) { +this.pos1 = i; +this.pos2 = j; +this.pos3 = k; +this.product = prod; +}, "~N,~N,~N,~S"); +Clazz.defineMethod (c$, "getBaseColumn", +function (base) { +if (base < 1 || base > 3) { +throw new IllegalArgumentException (Integer.toString (base)); +}return base == 1 ? this.pos1 : (base == 2 ? this.pos2 : this.pos3); +}, "~N"); +Clazz.overrideMethod (c$, "equals", +function (o) { +if (o == null) { +return true; +}if (!(Clazz.instanceOf (o, jalview.datamodel.AlignedCodon))) { +return false; +}var ac = o; +return (this.pos1 == ac.pos1 && this.pos2 == ac.pos2 && this.pos3 == ac.pos3); +}, "~O"); +Clazz.overrideMethod (c$, "toString", +function () { +var sb = new StringBuilder (); +sb.append ("[").append (this.pos1).append (", ").append (this.pos2).append (", ").append (this.pos3).append ("]"); +return sb.toString (); +}); +});