JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / jalview / jsdev / RegExp.js
1 Clazz.declarePackage ("jalview.jsdev");\r
2 Clazz.load (null, "jalview.jsdev.RegExp", ["com.stevesoft.pat.Regex"], function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.rg = null;\r
5 Clazz.instantialize (this, arguments);\r
6 }, jalview.jsdev, "RegExp");\r
7 c$.newRegex = Clazz.defineMethod (c$, "newRegex", \r
8 function (params) {\r
9 return  new com.stevesoft.pat.Regex (params.length < 1 ? null : params[0], params.length < 2 ? "" : params[1]);\r
10 }, "~A");\r
11 c$.perlCode = Clazz.defineMethod (c$, "perlCode", \r
12 function (s) {\r
13 return com.stevesoft.pat.Regex.perlCode (s);\r
14 }, "~S");\r
15 });\r