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