JAL-1807 includes ?j2sdebug flag and DebugJS._(msg)
[jalviewjs.git] / bin / jalview / jsdev / RegExp.js
1 Clazz.declarePackage ("jalview.jsdev");
2 Clazz.load (null, "jalview.jsdev.RegExp", ["com.stevesoft.pat.Regex"], function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.rg = null;
5 Clazz.instantialize (this, arguments);
6 }, jalview.jsdev, "RegExp");
7 c$.newRegex = Clazz.defineMethod (c$, "newRegex", 
8 function (params) {
9 return  new com.stevesoft.pat.Regex (params.length < 1 ? null : params[0], params.length < 2 ? "" : params[1]);
10 }, "~A");
11 c$.perlCode = Clazz.defineMethod (c$, "perlCode", 
12 function (s) {
13 return com.stevesoft.pat.Regex.perlCode (s);
14 }, "~S");
15 });