Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / com / stevesoft / pat / LeftRule.js
1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.ReplaceRule"], "com.stevesoft.pat.LeftRule", null, function () {
3 c$ = Clazz.declareType (com.stevesoft.pat, "LeftRule", com.stevesoft.pat.ReplaceRule);
4 Clazz.makeConstructor (c$, 
5 function () {
6 Clazz.superConstructor (this, com.stevesoft.pat.LeftRule, []);
7 });
8 Clazz.overrideMethod (c$, "apply", 
9 function (sb, res) {
10 sb.append (res.left ());
11 }, "com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");
12 Clazz.overrideMethod (c$, "toString1", 
13 function () {
14 return "$`";
15 });
16 });