JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / bin / com / stevesoft / pat / RuleHolder.js
1 Clazz.declarePackage ("com.stevesoft.pat");\r
2 Clazz.load (["com.stevesoft.pat.ReplaceRule"], "com.stevesoft.pat.RuleHolder", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.held = null;\r
5 Clazz.instantialize (this, arguments);\r
6 }, com.stevesoft.pat, "RuleHolder", com.stevesoft.pat.ReplaceRule);\r
7 Clazz.makeConstructor (c$, \r
8 function () {\r
9 Clazz.superConstructor (this, com.stevesoft.pat.RuleHolder, []);\r
10 });\r
11 Clazz.makeConstructor (c$, \r
12 function (h) {\r
13 Clazz.superConstructor (this, com.stevesoft.pat.RuleHolder, []);\r
14 this.held = h;\r
15 }, "com.stevesoft.pat.ReplaceRule");\r
16 Clazz.overrideMethod (c$, "clone1", \r
17 function () {\r
18 return  new com.stevesoft.pat.RuleHolder (this.held);\r
19 });\r
20 Clazz.defineMethod (c$, "toString1", \r
21 function () {\r
22 return this.held.toString1 ();\r
23 });\r
24 Clazz.defineMethod (c$, "apply", \r
25 function (sb, rr) {\r
26 this.held.apply (sb, rr);\r
27 }, "com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");\r
28 Clazz.defineMethod (c$, "arg", \r
29 function (s) {\r
30 return  new com.stevesoft.pat.RuleHolder (this.held.arg (s));\r
31 }, "~S");\r
32 });\r