1 Clazz.declarePackage ("com.stevesoft.pat");
\r
2 Clazz.load (["com.stevesoft.pat.ReplaceRule"], "com.stevesoft.pat.BackRefRule", null, function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
5 Clazz.instantialize (this, arguments);
\r
6 }, com.stevesoft.pat, "BackRefRule", com.stevesoft.pat.ReplaceRule);
\r
7 Clazz.makeConstructor (c$,
\r
9 Clazz.superConstructor (this, com.stevesoft.pat.BackRefRule, []);
\r
12 Clazz.overrideMethod (c$, "apply",
\r
13 function (sb, res) {
\r
14 var x = res.stringMatchedI (this.n);
\r
15 sb.append (x == null ? "" : x);
\r
16 }, "com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");
\r
17 Clazz.overrideMethod (c$, "toString1",
\r
19 return "$" + this.n;
\r
21 Clazz.overrideMethod (c$, "clone1",
\r
23 return new com.stevesoft.pat.BackRefRule (this.n);
\r