X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fcom%2Fstevesoft%2Fpat%2FMulti.js;h=e759c95dace4657a98319ea9a21e055d5415c72e;hp=e98b4fffb93b599af4b2b33bb757d546ea8bff5c;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/com/stevesoft/pat/Multi.js b/site/j2s/com/stevesoft/pat/Multi.js index e98b4ff..e759c95 100644 --- a/site/j2s/com/stevesoft/pat/Multi.js +++ b/site/j2s/com/stevesoft/pat/Multi.js @@ -1,62 +1,62 @@ -Clazz.declarePackage ("com.stevesoft.pat"); -Clazz.load (["com.stevesoft.pat.PatternSub"], "com.stevesoft.pat.Multi", ["com.stevesoft.pat.Multi_stage2"], function () { -c$ = Clazz.decorateAsClass (function () { -this.a = null; -this.b = null; -this.p = null; -this.st2 = null; -this.matchFewest = false; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat, "Multi", com.stevesoft.pat.PatternSub); -Clazz.overrideMethod (c$, "minChars", -function () { -return this.a.mul (this.p.countMinChars ()); -}); -Clazz.overrideMethod (c$, "maxChars", -function () { -return this.b.mul (this.p.countMaxChars ()); -}); -Clazz.makeConstructor (c$, -function (a, b, p) { -Clazz.superConstructor (this, com.stevesoft.pat.Multi, []); -this.a = a; -this.b = b; -this.p = p; -this.st2 = new com.stevesoft.pat.Multi_stage2 (a, b, p); -this.st2.parent = this; -this.sub = this.st2.sub; -}, "com.stevesoft.pat.patInt,com.stevesoft.pat.patInt,com.stevesoft.pat.Pattern"); -Clazz.overrideMethod (c$, "toString", -function () { -this.st2.matchFewest = this.matchFewest; -return this.st2.toString (); -}); -Clazz.overrideMethod (c$, "matchInternal", -function (pos, pt) { -try { -this.st2 = new com.stevesoft.pat.Multi_stage2 (this.a, this.b, this.p); -} catch (r__) { -if (Clazz.exceptionOf (r__, com.stevesoft.pat.RegSyntax)) { -} else { -throw r__; -} -} -this.st2.matchFewest = this.matchFewest; -this.st2.parent = this; -return this.st2.matchInternal (pos, pt); -}, "~N,com.stevesoft.pat.Pthings"); -Clazz.overrideMethod (c$, "clone1", -function (h) { -try { -var m = new com.stevesoft.pat.Multi (this.a, this.b, (this.p).clone (h)); -m.matchFewest = this.matchFewest; -return m; -} catch (rs) { -if (Clazz.exceptionOf (rs, com.stevesoft.pat.RegSyntax)) { -return null; -} else { -throw rs; -} -} -}, "java.util.Hashtable"); -}); +Clazz.declarePackage ("com.stevesoft.pat"); +Clazz.load (["com.stevesoft.pat.PatternSub"], "com.stevesoft.pat.Multi", ["com.stevesoft.pat.Multi_stage2"], function () { +c$ = Clazz.decorateAsClass (function () { +this.a = null; +this.b = null; +this.p = null; +this.st2 = null; +this.matchFewest = false; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat, "Multi", com.stevesoft.pat.PatternSub); +Clazz.overrideMethod (c$, "minChars", +function () { +return this.a.mul (this.p.countMinChars ()); +}); +Clazz.overrideMethod (c$, "maxChars", +function () { +return this.b.mul (this.p.countMaxChars ()); +}); +Clazz.makeConstructor (c$, +function (a, b, p) { +Clazz.superConstructor (this, com.stevesoft.pat.Multi, []); +this.a = a; +this.b = b; +this.p = p; +this.st2 = new com.stevesoft.pat.Multi_stage2 (a, b, p); +this.st2.parent = this; +this.sub = this.st2.sub; +}, "com.stevesoft.pat.patInt,com.stevesoft.pat.patInt,com.stevesoft.pat.Pattern"); +Clazz.overrideMethod (c$, "toString", +function () { +this.st2.matchFewest = this.matchFewest; +return this.st2.toString (); +}); +Clazz.overrideMethod (c$, "matchInternal", +function (pos, pt) { +try { +this.st2 = new com.stevesoft.pat.Multi_stage2 (this.a, this.b, this.p); +} catch (r__) { +if (Clazz.exceptionOf (r__, com.stevesoft.pat.RegSyntax)) { +} else { +throw r__; +} +} +this.st2.matchFewest = this.matchFewest; +this.st2.parent = this; +return this.st2.matchInternal (pos, pt); +}, "~N,com.stevesoft.pat.Pthings"); +Clazz.overrideMethod (c$, "clone1", +function (h) { +try { +var m = new com.stevesoft.pat.Multi (this.a, this.b, (this.p).clone (h)); +m.matchFewest = this.matchFewest; +return m; +} catch (rs) { +if (Clazz.exceptionOf (rs, com.stevesoft.pat.RegSyntax)) { +return null; +} else { +throw rs; +} +} +}, "java.util.Hashtable"); +});