ac1ce772b533b479c48c15585613d33859aba3b0
[jalviewjs.git] / bin / com / stevesoft / pat / AmpersandRule.js
1 Clazz.declarePackage ("com.stevesoft.pat");\r
2 Clazz.load (["com.stevesoft.pat.ReplaceRule"], "com.stevesoft.pat.AmpersandRule", null, function () {\r
3 c$ = Clazz.declareType (com.stevesoft.pat, "AmpersandRule", com.stevesoft.pat.ReplaceRule);\r
4 Clazz.makeConstructor (c$, \r
5 function () {\r
6 Clazz.superConstructor (this, com.stevesoft.pat.AmpersandRule, []);\r
7 });\r
8 Clazz.overrideMethod (c$, "apply", \r
9 function (sb, res) {\r
10 sb.append (res.stringMatched ());\r
11 }, "com.stevesoft.pat.StringBufferLike,com.stevesoft.pat.RegRes");\r
12 Clazz.overrideMethod (c$, "toString1", \r
13 function () {\r
14 return "$&";\r
15 });\r
16 });\r