1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.Or"], "com.stevesoft.pat.lookAhead", ["com.stevesoft.pat.patInt"], function () {
3 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, com.stevesoft.pat, "lookAhead", com.stevesoft.pat.Or);
7 Clazz.makeConstructor (c$,
9 Clazz.superConstructor (this, com.stevesoft.pat.lookAhead, []);
12 Clazz.defineMethod (c$, "getNext",
16 Clazz.overrideMethod (c$, "nextMatch",
18 var p = Clazz.superCall (this, com.stevesoft.pat.lookAhead, "getNext", []);
20 return p.matchInternal (pos, pt);
23 }}, "~N,com.stevesoft.pat.Pthings");
24 Clazz.defineMethod (c$, "matchInternal",
26 if (Clazz.superCall (this, com.stevesoft.pat.lookAhead, "matchInternal", [pos, pt]) >= 0) {
30 return this.nextMatch (pos, pt);
33 return this.nextMatch (pos, pt);
36 }}}, "~N,com.stevesoft.pat.Pthings");
37 Clazz.overrideMethod (c$, "leftForm",
44 Clazz.overrideMethod (c$, "minChars",
46 return new com.stevesoft.pat.patInt (0);
48 Clazz.overrideMethod (c$, "maxChars",
50 return new com.stevesoft.pat.patInt (0);
52 Clazz.overrideMethod (c$, "clone1",
54 var la = new com.stevesoft.pat.lookAhead (this.reverse);
57 for (var i = 0; i < this.v.size (); i++) {
58 la.v.addElement ((this.v.elementAt (i)).clone (h));
61 }, "java.util.Hashtable");