JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / bin / com / stevesoft / pat / CodeRule.js
1 Clazz.declarePackage ("com.stevesoft.pat");\r
2 Clazz.load (["com.stevesoft.pat.SpecialRule"], "com.stevesoft.pat.CodeRule", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.c = 'E';\r
5 Clazz.instantialize (this, arguments);\r
6 }, com.stevesoft.pat, "CodeRule", com.stevesoft.pat.SpecialRule);\r
7 Clazz.makeConstructor (c$, \r
8 function () {\r
9 Clazz.superConstructor (this, com.stevesoft.pat.CodeRule, []);\r
10 });\r
11 Clazz.makeConstructor (c$, \r
12 function (c) {\r
13 Clazz.superConstructor (this, com.stevesoft.pat.CodeRule, []);\r
14 this.c = c;\r
15 }, "~S");\r
16 Clazz.overrideMethod (c$, "apply", \r
17 function (sb, res) {\r
18 sb.setMode (this.c);\r
19 }, "com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");\r
20 Clazz.overrideMethod (c$, "toString1", \r
21 function () {\r
22 return "\\" + this.c;\r
23 });\r
24 });\r