1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.PatternSub"], "com.stevesoft.pat.Custom", ["com.stevesoft.pat.Regex"], function () {
3 c$ = Clazz.decorateAsClass (function () {
7 Clazz.instantialize (this, arguments);
8 }, com.stevesoft.pat, "Custom", com.stevesoft.pat.PatternSub);
9 Clazz.makeConstructor (c$,
11 Clazz.superConstructor (this, com.stevesoft.pat.Custom, []);
13 this.v = com.stevesoft.pat.Regex.validators.get (s);
15 Clazz.defineMethod (c$, "matchInternal",
18 return this.sub.matchInternal (pos, pt);
19 }, "~N,com.stevesoft.pat.Pthings");
20 Clazz.overrideMethod (c$, "toString",
22 var a = this.v.argsave == null ? "" : ":" + this.v.argsave;
23 return "(??" + this.select + a + ")" + this.nextString ();
25 Clazz.overrideMethod (c$, "minChars",
27 return this.v.minChars ();
29 Clazz.overrideMethod (c$, "maxChars",
31 return this.v.maxChars ();
33 Clazz.overrideMethod (c$, "clone1",
35 var c = new com.stevesoft.pat.Custom (this.select);
38 c.sub = this.sub.clone (h);
40 }, "java.util.Hashtable");