1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Group", ["com.stevesoft.pat.patInt"], function () {
3 c$ = Clazz.decorateAsClass (function () {
6 Clazz.instantialize (this, arguments);
7 }, com.stevesoft.pat, "Group", com.stevesoft.pat.Pattern);
8 Clazz.makeConstructor (c$,
10 Clazz.superConstructor (this, com.stevesoft.pat.Group, []);
14 Clazz.overrideMethod (c$, "matchInternal",
18 if (pos < pt.src.length ()) {
19 if (!this.Masked (pos, pt) && pt.src.charAt (pos) != this.op) {
21 }}for (i = pos + 1; i < pt.src.length (); i++) {
22 var c = pt.src.charAt (i);
23 var b = !this.Masked (i, pt);
27 if (b && c == this.cl) {
30 return this.nextMatch (i + 1, pt);
31 }if (b && c == this.op) {
35 }, "~N,com.stevesoft.pat.Pthings");
36 Clazz.overrideMethod (c$, "toString",
38 return "(?@" + this.op + this.cl + ")" + this.nextString ();
40 Clazz.overrideMethod (c$, "minChars",
42 return new com.stevesoft.pat.patInt (2);
44 Clazz.overrideMethod (c$, "clone1",
46 return new com.stevesoft.pat.Group (this.op, this.cl);
47 }, "java.util.Hashtable");