1 Clazz.declarePackage ("com.stevesoft.pat");
\r
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.BackMatch", null, function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
5 Clazz.instantialize (this, arguments);
\r
6 }, com.stevesoft.pat, "BackMatch", com.stevesoft.pat.Pattern);
\r
7 Clazz.makeConstructor (c$,
\r
9 Clazz.superConstructor (this, com.stevesoft.pat.BackMatch, []);
\r
12 Clazz.overrideMethod (c$, "toString",
\r
14 return "\\" + (this.id) + this.nextString ();
\r
16 Clazz.overrideMethod (c$, "matchInternal",
\r
18 var i1 = p.marks[this.id];
\r
19 var i2 = p.marks[this.id + p.nMarks];
\r
21 if (i1 < 0 || imax < 0 || pos + imax > p.src.length ()) {
\r
23 }var ns = p.src.length () - pos;
\r
26 }for (var i = 0; i < ns; i++) {
\r
27 if (p.src.charAt (i + i1) != p.src.charAt (pos + i)) {
\r
30 return this.nextMatch (pos + imax, p);
\r
31 }, "~N,com.stevesoft.pat.Pthings");
\r
32 Clazz.overrideMethod (c$, "clone1",
\r
34 return new com.stevesoft.pat.BackMatch (this.id);
\r
35 }, "java.util.Hashtable");
\r