Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / com / stevesoft / pat / CodeRule.js
1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.SpecialRule"], "com.stevesoft.pat.CodeRule", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.c = 'E';
5 Clazz.instantialize (this, arguments);
6 }, com.stevesoft.pat, "CodeRule", com.stevesoft.pat.SpecialRule);
7 Clazz.makeConstructor (c$, 
8 function () {
9 Clazz.superConstructor (this, com.stevesoft.pat.CodeRule, []);
10 });
11 Clazz.makeConstructor (c$, 
12 function (c) {
13 Clazz.superConstructor (this, com.stevesoft.pat.CodeRule, []);
14 this.c = c;
15 }, "~S");
16 Clazz.overrideMethod (c$, "apply", 
17 function (sb, res) {
18 sb.setMode (this.c);
19 }, "com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");
20 Clazz.overrideMethod (c$, "toString1", 
21 function () {
22 return "\\" + this.c;
23 });
24 });