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