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