Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / com / stevesoft / pat / PushRule.js
1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.SpecialRule"], "com.stevesoft.pat.PushRule", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.NewRule = null;
5 Clazz.instantialize (this, arguments);
6 }, com.stevesoft.pat, "PushRule", com.stevesoft.pat.SpecialRule);
7 Clazz.makeConstructor (c$, 
8 function (p) {
9 Clazz.superConstructor (this, com.stevesoft.pat.PushRule, []);
10 this.NewRule = p.NewRule;
11 }, "com.stevesoft.pat.PushRule");
12 Clazz.makeConstructor (c$, 
13 function (nm, rr) {
14 Clazz.superConstructor (this, com.stevesoft.pat.PushRule, []);
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.PushRule, []);
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.PushRule (this);
27 });
28 Clazz.defineMethod (c$, "String1", 
29 function () {
30 return "${+" + this.name + "}";
31 });
32 Clazz.overrideMethod (c$, "apply", 
33 function (sbl, rr) {
34 }, "com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");
35 });