JAL-1807 still testing
[jalviewjs.git] / bin / com / stevesoft / pat / OrMark.js
index 7590a74..bf47fca 100644 (file)
@@ -1,54 +1,54 @@
-Clazz.declarePackage ("com.stevesoft.pat");
-Clazz.load (["com.stevesoft.pat.Or", "$.SubMark"], "com.stevesoft.pat.OrMark", null, function () {
-c$ = Clazz.decorateAsClass (function () {
-this.sm = null;
-this.id = 0;
-Clazz.instantialize (this, arguments);
-}, com.stevesoft.pat, "OrMark", com.stevesoft.pat.Or);
-Clazz.prepareFields (c$, function () {
-this.sm =  new com.stevesoft.pat.SubMark ();
-});
-Clazz.makeConstructor (c$, 
-function (i) {
-Clazz.superConstructor (this, com.stevesoft.pat.OrMark, []);
-this.sm.om = this;
-this.id = i;
-}, "~N");
-Clazz.overrideMethod (c$, "leftForm", 
-function () {
-return "(";
-});
-Clazz.defineMethod (c$, "getNext", 
-function () {
-return this.sm;
-});
-Clazz.defineMethod (c$, "matchInternal", 
-function (pos, pt) {
-this.sm.next = Clazz.superCall (this, com.stevesoft.pat.OrMark, "getNext", []);
-if (pt.marks == null) {
-var n2 = 2 * pt.nMarks + 2;
-pt.marks =  Clazz.newIntArray (n2, 0);
-for (var i = 0; i < n2; i++) {
-pt.marks[i] = -1;
-}
-}pt.marks[this.id] = pos;
-var ret = Clazz.superCall (this, com.stevesoft.pat.OrMark, "matchInternal", [pos, pt]);
-if (ret < 0) {
-pt.marks[this.id] = -1;
-} else if (pt.marks[this.id] > pt.marks[this.id + pt.nMarks]) {
-var swap = pt.marks[this.id];
-pt.marks[this.id] = pt.marks[this.id + pt.nMarks] + 1;
-pt.marks[this.id + pt.nMarks] = swap + 1;
-}return ret;
-}, "~N,com.stevesoft.pat.Pthings");
-Clazz.overrideMethod (c$, "clone1", 
-function (h) {
-var om =  new com.stevesoft.pat.OrMark (this.id);
-h.put (om, om);
-h.put (this, om);
-for (var i = 0; i < this.v.size (); i++) {
-om.v.addElement ((this.v.elementAt (i)).clone (h));
-}
-return om;
-}, "java.util.Hashtable");
-});
+Clazz.declarePackage ("com.stevesoft.pat");\r
+Clazz.load (["com.stevesoft.pat.Or", "$.SubMark"], "com.stevesoft.pat.OrMark", null, function () {\r
+c$ = Clazz.decorateAsClass (function () {\r
+this.sm = null;\r
+this.id = 0;\r
+Clazz.instantialize (this, arguments);\r
+}, com.stevesoft.pat, "OrMark", com.stevesoft.pat.Or);\r
+Clazz.prepareFields (c$, function () {\r
+this.sm =  new com.stevesoft.pat.SubMark ();\r
+});\r
+Clazz.makeConstructor (c$, \r
+function (i) {\r
+Clazz.superConstructor (this, com.stevesoft.pat.OrMark, []);\r
+this.sm.om = this;\r
+this.id = i;\r
+}, "~N");\r
+Clazz.overrideMethod (c$, "leftForm", \r
+function () {\r
+return "(";\r
+});\r
+Clazz.defineMethod (c$, "getNext", \r
+function () {\r
+return this.sm;\r
+});\r
+Clazz.defineMethod (c$, "matchInternal", \r
+function (pos, pt) {\r
+this.sm.next = Clazz.superCall (this, com.stevesoft.pat.OrMark, "getNext", []);\r
+if (pt.marks == null) {\r
+var n2 = 2 * pt.nMarks + 2;\r
+pt.marks =  Clazz.newIntArray (n2, 0);\r
+for (var i = 0; i < n2; i++) {\r
+pt.marks[i] = -1;\r
+}\r
+}pt.marks[this.id] = pos;\r
+var ret = Clazz.superCall (this, com.stevesoft.pat.OrMark, "matchInternal", [pos, pt]);\r
+if (ret < 0) {\r
+pt.marks[this.id] = -1;\r
+} else if (pt.marks[this.id] > pt.marks[this.id + pt.nMarks]) {\r
+var swap = pt.marks[this.id];\r
+pt.marks[this.id] = pt.marks[this.id + pt.nMarks] + 1;\r
+pt.marks[this.id + pt.nMarks] = swap + 1;\r
+}return ret;\r
+}, "~N,com.stevesoft.pat.Pthings");\r
+Clazz.overrideMethod (c$, "clone1", \r
+function (h) {\r
+var om =  new com.stevesoft.pat.OrMark (this.id);\r
+h.put (om, om);\r
+h.put (this, om);\r
+for (var i = 0; i < this.v.size (); i++) {\r
+om.v.addElement ((this.v.elementAt (i)).clone (h));\r
+}\r
+return om;\r
+}, "java.util.Hashtable");\r
+});\r