JAL-1807 test
[jalviewjs.git] / bin / com / stevesoft / pat / ChangeRule.js
1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.SpecialRule"], "com.stevesoft.pat.ChangeRule", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.NewRule = null;
5 Clazz.instantialize (this, arguments);
6 }, com.stevesoft.pat, "ChangeRule", com.stevesoft.pat.SpecialRule);
7 Clazz.makeConstructor (c$, 
8 function (c) {
9 Clazz.superConstructor (this, com.stevesoft.pat.ChangeRule, []);
10 this.NewRule = c.NewRule;
11 }, "com.stevesoft.pat.ChangeRule");
12 Clazz.makeConstructor (c$, 
13 function (nm, rr) {
14 Clazz.superConstructor (this, com.stevesoft.pat.ChangeRule, []);
15 this.name = nm;
16 this.NewRule = rr;
17 }, "~S,com.stevesoft.pat.Regex");
18 Clazz.makeConstructor (c$, 
19 function (nm, tr) {
20 Clazz.superConstructor (this, com.stevesoft.pat.ChangeRule, []);
21 this.name = nm;
22 this.NewRule = tr.rp;
23 }, "~S,com.stevesoft.pat.Transformer");
24 Clazz.overrideMethod (c$, "clone1", 
25 function () {
26 return  new com.stevesoft.pat.ChangeRule (this);
27 });
28 Clazz.overrideMethod (c$, "toString1", 
29 function () {
30 return "${=" + this.name + "}";
31 });
32 Clazz.overrideMethod (c$, "apply", 
33 function (sb, rr) {
34 }, "com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");
35 });