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