1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.Or"], "com.stevesoft.pat.Bracket", ["com.stevesoft.pat.patInt", "java.util.Vector"], function () {
3 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, com.stevesoft.pat, "Bracket", com.stevesoft.pat.Or);
7 Clazz.makeConstructor (c$,
9 Clazz.superConstructor (this, com.stevesoft.pat.Bracket, []);
12 Clazz.overrideMethod (c$, "leftForm",
19 Clazz.overrideMethod (c$, "rightForm",
23 Clazz.overrideMethod (c$, "sepForm",
27 Clazz.defineMethod (c$, "matchInternal",
29 if (pos >= pt.src.length ()) {
31 }var r = Clazz.superCall (this, com.stevesoft.pat.Bracket, "matchInternal", [pos, pt]);
32 if ((this.neg && r < 0) || (!this.neg && r >= 0)) {
33 return this.nextMatch (pos + 1, pt);
35 }, "~N,com.stevesoft.pat.Pthings");
36 Clazz.overrideMethod (c$, "minChars",
38 return new com.stevesoft.pat.patInt (1);
40 Clazz.overrideMethod (c$, "maxChars",
42 return new com.stevesoft.pat.patInt (1);
44 Clazz.overrideMethod (c$, "addOr",
47 this.v.addElement (p);
50 }, "com.stevesoft.pat.Pattern");
51 Clazz.overrideMethod (c$, "clone1",
53 var b = new com.stevesoft.pat.Bracket (this.neg);
54 b.v = new java.util.Vector ();
55 for (var i = 0; i < this.v.size (); i++) {
56 b.v.addElement ((this.v.elementAt (i)).clone1 (h));
59 }, "java.util.Hashtable");