1 Clazz.declarePackage ("com.stevesoft.pat");
\r
2 Clazz.load (["com.stevesoft.pat.PatternSub"], "com.stevesoft.pat.Multi", ["com.stevesoft.pat.Multi_stage2"], function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
8 this.matchFewest = false;
\r
9 Clazz.instantialize (this, arguments);
\r
10 }, com.stevesoft.pat, "Multi", com.stevesoft.pat.PatternSub);
\r
11 Clazz.overrideMethod (c$, "minChars",
\r
13 return this.a.mul (this.p.countMinChars ());
\r
15 Clazz.overrideMethod (c$, "maxChars",
\r
17 return this.b.mul (this.p.countMaxChars ());
\r
19 Clazz.makeConstructor (c$,
\r
20 function (a, b, p) {
\r
21 Clazz.superConstructor (this, com.stevesoft.pat.Multi, []);
\r
25 this.st2 = new com.stevesoft.pat.Multi_stage2 (a, b, p);
\r
26 this.st2.parent = this;
\r
27 this.sub = this.st2.sub;
\r
28 }, "com.stevesoft.pat.patInt,com.stevesoft.pat.patInt,com.stevesoft.pat.Pattern");
\r
29 Clazz.overrideMethod (c$, "toString",
\r
31 this.st2.matchFewest = this.matchFewest;
\r
32 return this.st2.toString ();
\r
34 Clazz.overrideMethod (c$, "matchInternal",
\r
35 function (pos, pt) {
\r
37 this.st2 = new com.stevesoft.pat.Multi_stage2 (this.a, this.b, this.p);
\r
39 if (Clazz.exceptionOf (r__, com.stevesoft.pat.RegSyntax)) {
\r
44 this.st2.matchFewest = this.matchFewest;
\r
45 this.st2.parent = this;
\r
46 return this.st2.matchInternal (pos, pt);
\r
47 }, "~N,com.stevesoft.pat.Pthings");
\r
48 Clazz.overrideMethod (c$, "clone1",
\r
51 var m = new com.stevesoft.pat.Multi (this.a, this.b, (this.p).clone (h));
\r
52 m.matchFewest = this.matchFewest;
\r
55 if (Clazz.exceptionOf (rs, com.stevesoft.pat.RegSyntax)) {
\r
61 }, "java.util.Hashtable");
\r