JAL-1807 test
[jalviewjs.git] / bin / com / stevesoft / pat / RegRes.js
index ec4def1..9a31c29 100644 (file)
-Clazz.declarePackage ("com.stevesoft.pat");\r
-Clazz.load (null, "com.stevesoft.pat.RegRes", ["java.lang.StringBuffer"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.marks = null;\r
-this.didMatch_ = false;\r
-this.src = null;\r
-this.charsMatched_ = 0;\r
-this.matchFrom_ = 0;\r
-this.numSubs_ = 0;\r
-Clazz.instantialize (this, arguments);\r
-}, com.stevesoft.pat, "RegRes");\r
-Clazz.defineMethod (c$, "getString", \r
-function () {\r
-return this.src.toString ();\r
-});\r
-Clazz.defineMethod (c$, "getStringLike", \r
-function () {\r
-return this.src;\r
-});\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-var sb =  new StringBuffer ();\r
-sb.append ("match=" + this.matchedFrom () + ":" + this.charsMatched ());\r
-if (!this.didMatch ()) {\r
-return sb.toString ();\r
-}for (var i = 0; i < this.numSubs (); i++) {\r
-var n = i + 1;\r
-sb.append (" sub(" + n + ")=" + this.matchedFromI (n) + ":" + this.charsMatchedI (n));\r
-}\r
-return sb.toString ();\r
-});\r
-Clazz.defineMethod (c$, "copyOutOf", \r
-function (r) {\r
-if (r.marks == null) {\r
-this.marks = null;\r
-} else {\r
-try {\r
-this.marks =  Clazz.newIntArray (r.marks.length, 0);\r
-for (var i = 0; i < this.marks.length; i++) {\r
-this.marks[i] = r.marks[i];\r
-}\r
-} catch (t) {\r
-}\r
-}this.didMatch_ = r.didMatch_;\r
-this.src = r.src;\r
-this.charsMatched_ = r.charsMatched_;\r
-this.matchFrom_ = r.matchFrom_;\r
-this.numSubs_ = r.numSubs_;\r
-}, "com.stevesoft.pat.RegRes");\r
-Clazz.defineMethod (c$, "equals", \r
-function (r) {\r
-if (this.charsMatched_ != r.charsMatched_ || this.matchFrom_ != r.matchFrom_ || this.didMatch_ != r.didMatch_ || this.numSubs_ != r.numSubs_ || !this.src.unwrap ().equals (r.src.unwrap ())) {\r
-return false;\r
-}if (this.marks == null && r.marks != null) {\r
-return false;\r
-}if (this.marks != null && r.marks == null) {\r
-return false;\r
-}for (var i = 1; i <= this.numSubs_; i++) {\r
-if (this.matchedFromI (i) != r.matchedFromI (i)) {\r
-return false;\r
-} else if (this.charsMatchedI (i) != r.charsMatchedI (i)) {\r
-return false;\r
-}}\r
-return true;\r
-}, "com.stevesoft.pat.RegRes");\r
-Clazz.defineMethod (c$, "stringMatched", \r
-function () {\r
-var mf = this.matchedFrom ();\r
-var cm = this.charsMatched ();\r
-return !this.didMatch_ || mf < 0 || cm < 0 ? null : this.src.substring (mf, mf + cm);\r
-});\r
-Clazz.defineMethod (c$, "matchedFromI", \r
-function (i) {\r
-if (this.marks == null || i > this.numSubs_) {\r
-return -1;\r
-}return this.marks[i];\r
-}, "~N");\r
-Clazz.defineMethod (c$, "charsMatchedI", \r
-function (i) {\r
-if (this.marks == null || i > this.numSubs_ || !this.didMatch_) {\r
-return -1;\r
-}var mf = this.matchedFromI (i);\r
-return mf < 0 ? -1 : this.marks[i + this.numSubs_] - this.matchedFromI (i);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "matchedToI", \r
-function (i) {\r
-if (this.marks == null || i > this.numSubs_ || !this.didMatch_) {\r
-return -1;\r
-}return this.marks[i + this.numSubs_];\r
-}, "~N");\r
-Clazz.defineMethod (c$, "stringMatchedI", \r
-function (i) {\r
-var mf = this.matchedFromI (i);\r
-var cm = this.charsMatchedI (i);\r
-return !this.didMatch_ || mf < 0 || cm < 0 ? null : this.src.substring (mf, mf + cm);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "left", \r
-function () {\r
-var mf = this.matchedFrom ();\r
-return !this.didMatch_ || (mf < 0) ? null : this.src.substring (0, mf);\r
-});\r
-Clazz.defineMethod (c$, "leftI", \r
-function (i) {\r
-var mf = this.matchedFromI (i);\r
-return !this.didMatch_ || (mf < 0) ? null : this.src.substring (0, mf);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "right", \r
-function () {\r
-var mf = this.matchedFrom ();\r
-var cm = this.charsMatched ();\r
-return !this.didMatch_ || mf < 0 || cm < 0 ? null : this.src.substring (mf + cm, this.src.length ());\r
-});\r
-Clazz.defineMethod (c$, "rightI", \r
-function (i) {\r
-var mf = this.matchedFromI (i);\r
-var cm = this.charsMatchedI (i);\r
-return !this.didMatch_ || mf < 0 || cm < 0 ? null : this.src.substring (mf + cm, this.src.length ());\r
-}, "~N");\r
-Clazz.defineMethod (c$, "matchedFrom", \r
-function () {\r
-return !this.didMatch_ ? -1 : this.matchFrom_;\r
-});\r
-Clazz.defineMethod (c$, "charsMatched", \r
-function () {\r
-return !this.didMatch_ || this.matchFrom_ < 0 ? -1 : this.charsMatched_;\r
-});\r
-Clazz.defineMethod (c$, "matchedTo", \r
-function () {\r
-return !this.didMatch_ ? -1 : this.matchFrom_ + this.charsMatched_;\r
-});\r
-Clazz.defineMethod (c$, "numSubs", \r
-function () {\r
-return this.numSubs_;\r
-});\r
-Clazz.defineMethod (c$, "didMatch", \r
-function () {\r
-return this.didMatch_;\r
-});\r
-Clazz.defineMethod (c$, "matchFrom", \r
-function () {\r
-return this.matchedFrom ();\r
-});\r
-Clazz.defineMethod (c$, "substring", \r
-function () {\r
-return this.stringMatched ();\r
-});\r
-Clazz.defineMethod (c$, "matchFromI", \r
-function (i) {\r
-return this.matchedFromI (i);\r
-}, "~N");\r
-Clazz.defineMethod (c$, "substringI", \r
-function (i) {\r
-return this.stringMatchedI (i);\r
-}, "~N");\r
-});\r
+Clazz.declarePackage ("com.stevesoft.pat");
+Clazz.load (null, "com.stevesoft.pat.RegRes", ["java.lang.StringBuffer"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.marks = null;
+this.didMatch_ = false;
+this.src = null;
+this.charsMatched_ = 0;
+this.matchFrom_ = 0;
+this.numSubs_ = 0;
+Clazz.instantialize (this, arguments);
+}, com.stevesoft.pat, "RegRes");
+Clazz.defineMethod (c$, "getString", 
+function () {
+return this.src.toString ();
+});
+Clazz.defineMethod (c$, "getStringLike", 
+function () {
+return this.src;
+});
+Clazz.overrideMethod (c$, "toString", 
+function () {
+var sb =  new StringBuffer ();
+sb.append ("match=" + this.matchedFrom () + ":" + this.charsMatched ());
+if (!this.didMatch ()) {
+return sb.toString ();
+}for (var i = 0; i < this.numSubs (); i++) {
+var n = i + 1;
+sb.append (" sub(" + n + ")=" + this.matchedFromI (n) + ":" + this.charsMatchedI (n));
+}
+return sb.toString ();
+});
+Clazz.defineMethod (c$, "copyOutOf", 
+function (r) {
+if (r.marks == null) {
+this.marks = null;
+} else {
+try {
+this.marks =  Clazz.newIntArray (r.marks.length, 0);
+for (var i = 0; i < this.marks.length; i++) {
+this.marks[i] = r.marks[i];
+}
+} catch (t) {
+}
+}this.didMatch_ = r.didMatch_;
+this.src = r.src;
+this.charsMatched_ = r.charsMatched_;
+this.matchFrom_ = r.matchFrom_;
+this.numSubs_ = r.numSubs_;
+}, "com.stevesoft.pat.RegRes");
+Clazz.defineMethod (c$, "equals", 
+function (r) {
+if (this.charsMatched_ != r.charsMatched_ || this.matchFrom_ != r.matchFrom_ || this.didMatch_ != r.didMatch_ || this.numSubs_ != r.numSubs_ || !this.src.unwrap ().equals (r.src.unwrap ())) {
+return false;
+}if (this.marks == null && r.marks != null) {
+return false;
+}if (this.marks != null && r.marks == null) {
+return false;
+}for (var i = 1; i <= this.numSubs_; i++) {
+if (this.matchedFromI (i) != r.matchedFromI (i)) {
+return false;
+} else if (this.charsMatchedI (i) != r.charsMatchedI (i)) {
+return false;
+}}
+return true;
+}, "com.stevesoft.pat.RegRes");
+Clazz.defineMethod (c$, "stringMatched", 
+function () {
+var mf = this.matchedFrom ();
+var cm = this.charsMatched ();
+return !this.didMatch_ || mf < 0 || cm < 0 ? null : this.src.substring (mf, mf + cm);
+});
+Clazz.defineMethod (c$, "matchedFromI", 
+function (i) {
+if (this.marks == null || i > this.numSubs_) {
+return -1;
+}return this.marks[i];
+}, "~N");
+Clazz.defineMethod (c$, "charsMatchedI", 
+function (i) {
+if (this.marks == null || i > this.numSubs_ || !this.didMatch_) {
+return -1;
+}var mf = this.matchedFromI (i);
+return mf < 0 ? -1 : this.marks[i + this.numSubs_] - this.matchedFromI (i);
+}, "~N");
+Clazz.defineMethod (c$, "matchedToI", 
+function (i) {
+if (this.marks == null || i > this.numSubs_ || !this.didMatch_) {
+return -1;
+}return this.marks[i + this.numSubs_];
+}, "~N");
+Clazz.defineMethod (c$, "stringMatchedI", 
+function (i) {
+var mf = this.matchedFromI (i);
+var cm = this.charsMatchedI (i);
+return !this.didMatch_ || mf < 0 || cm < 0 ? null : this.src.substring (mf, mf + cm);
+}, "~N");
+Clazz.defineMethod (c$, "left", 
+function () {
+var mf = this.matchedFrom ();
+return !this.didMatch_ || (mf < 0) ? null : this.src.substring (0, mf);
+});
+Clazz.defineMethod (c$, "leftI", 
+function (i) {
+var mf = this.matchedFromI (i);
+return !this.didMatch_ || (mf < 0) ? null : this.src.substring (0, mf);
+}, "~N");
+Clazz.defineMethod (c$, "right", 
+function () {
+var mf = this.matchedFrom ();
+var cm = this.charsMatched ();
+return !this.didMatch_ || mf < 0 || cm < 0 ? null : this.src.substring (mf + cm, this.src.length ());
+});
+Clazz.defineMethod (c$, "rightI", 
+function (i) {
+var mf = this.matchedFromI (i);
+var cm = this.charsMatchedI (i);
+return !this.didMatch_ || mf < 0 || cm < 0 ? null : this.src.substring (mf + cm, this.src.length ());
+}, "~N");
+Clazz.defineMethod (c$, "matchedFrom", 
+function () {
+return !this.didMatch_ ? -1 : this.matchFrom_;
+});
+Clazz.defineMethod (c$, "charsMatched", 
+function () {
+return !this.didMatch_ || this.matchFrom_ < 0 ? -1 : this.charsMatched_;
+});
+Clazz.defineMethod (c$, "matchedTo", 
+function () {
+return !this.didMatch_ ? -1 : this.matchFrom_ + this.charsMatched_;
+});
+Clazz.defineMethod (c$, "numSubs", 
+function () {
+return this.numSubs_;
+});
+Clazz.defineMethod (c$, "didMatch", 
+function () {
+return this.didMatch_;
+});
+Clazz.defineMethod (c$, "matchFrom", 
+function () {
+return this.matchedFrom ();
+});
+Clazz.defineMethod (c$, "substring", 
+function () {
+return this.stringMatched ();
+});
+Clazz.defineMethod (c$, "matchFromI", 
+function (i) {
+return this.matchedFromI (i);
+}, "~N");
+Clazz.defineMethod (c$, "substringI", 
+function (i) {
+return this.stringMatchedI (i);
+}, "~N");
+});