Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / com / stevesoft / pat / lookAhead.js
index 05e888d..6b9fe88 100644 (file)
@@ -1,62 +1,62 @@
-Clazz.declarePackage ("com.stevesoft.pat");\r
-Clazz.load (["com.stevesoft.pat.Or"], "com.stevesoft.pat.lookAhead", ["com.stevesoft.pat.patInt"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.reverse = false;\r
-Clazz.instantialize (this, arguments);\r
-}, com.stevesoft.pat, "lookAhead", com.stevesoft.pat.Or);\r
-Clazz.makeConstructor (c$, \r
-function (b) {\r
-Clazz.superConstructor (this, com.stevesoft.pat.lookAhead, []);\r
-this.reverse = b;\r
-}, "~B");\r
-Clazz.defineMethod (c$, "getNext", \r
-function () {\r
-return null;\r
-});\r
-Clazz.overrideMethod (c$, "nextMatch", \r
-function (pos, pt) {\r
-var p = Clazz.superCall (this, com.stevesoft.pat.lookAhead, "getNext", []);\r
-if (p != null) {\r
-return p.matchInternal (pos, pt);\r
-} else {\r
-return pos;\r
-}}, "~N,com.stevesoft.pat.Pthings");\r
-Clazz.defineMethod (c$, "matchInternal", \r
-function (pos, pt) {\r
-if (Clazz.superCall (this, com.stevesoft.pat.lookAhead, "matchInternal", [pos, pt]) >= 0) {\r
-if (this.reverse) {\r
-return -1;\r
-} else {\r
-return this.nextMatch (pos, pt);\r
-}} else {\r
-if (this.reverse) {\r
-return this.nextMatch (pos, pt);\r
-} else {\r
-return -1;\r
-}}}, "~N,com.stevesoft.pat.Pthings");\r
-Clazz.overrideMethod (c$, "leftForm", \r
-function () {\r
-if (this.reverse) {\r
-return "(?!";\r
-} else {\r
-return "(?=";\r
-}});\r
-Clazz.overrideMethod (c$, "minChars", \r
-function () {\r
-return  new com.stevesoft.pat.patInt (0);\r
-});\r
-Clazz.overrideMethod (c$, "maxChars", \r
-function () {\r
-return  new com.stevesoft.pat.patInt (0);\r
-});\r
-Clazz.overrideMethod (c$, "clone1", \r
-function (h) {\r
-var la =  new com.stevesoft.pat.lookAhead (this.reverse);\r
-h.put (this, la);\r
-h.put (la, la);\r
-for (var i = 0; i < this.v.size (); i++) {\r
-la.v.addElement ((this.v.elementAt (i)).clone (h));\r
-}\r
-return la;\r
-}, "java.util.Hashtable");\r
-});\r
+Clazz.declarePackage ("com.stevesoft.pat");
+Clazz.load (["com.stevesoft.pat.Or"], "com.stevesoft.pat.lookAhead", ["com.stevesoft.pat.patInt"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.reverse = false;
+Clazz.instantialize (this, arguments);
+}, com.stevesoft.pat, "lookAhead", com.stevesoft.pat.Or);
+Clazz.makeConstructor (c$, 
+function (b) {
+Clazz.superConstructor (this, com.stevesoft.pat.lookAhead, []);
+this.reverse = b;
+}, "~B");
+Clazz.defineMethod (c$, "getNext", 
+function () {
+return null;
+});
+Clazz.overrideMethod (c$, "nextMatch", 
+function (pos, pt) {
+var p = Clazz.superCall (this, com.stevesoft.pat.lookAhead, "getNext", []);
+if (p != null) {
+return p.matchInternal (pos, pt);
+} else {
+return pos;
+}}, "~N,com.stevesoft.pat.Pthings");
+Clazz.defineMethod (c$, "matchInternal", 
+function (pos, pt) {
+if (Clazz.superCall (this, com.stevesoft.pat.lookAhead, "matchInternal", [pos, pt]) >= 0) {
+if (this.reverse) {
+return -1;
+} else {
+return this.nextMatch (pos, pt);
+}} else {
+if (this.reverse) {
+return this.nextMatch (pos, pt);
+} else {
+return -1;
+}}}, "~N,com.stevesoft.pat.Pthings");
+Clazz.overrideMethod (c$, "leftForm", 
+function () {
+if (this.reverse) {
+return "(?!";
+} else {
+return "(?=";
+}});
+Clazz.overrideMethod (c$, "minChars", 
+function () {
+return  new com.stevesoft.pat.patInt (0);
+});
+Clazz.overrideMethod (c$, "maxChars", 
+function () {
+return  new com.stevesoft.pat.patInt (0);
+});
+Clazz.overrideMethod (c$, "clone1", 
+function (h) {
+var la =  new com.stevesoft.pat.lookAhead (this.reverse);
+h.put (this, la);
+h.put (la, la);
+for (var i = 0; i < this.v.size (); i++) {
+la.v.addElement ((this.v.elementAt (i)).clone (h));
+}
+return la;
+}, "java.util.Hashtable");
+});