Clazz.declarePackage ("com.stevesoft.pat"); Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.TransPat", ["com.stevesoft.pat.Regex"], function () { c$ = Clazz.decorateAsClass (function () { this.ra = null; this.ra_len = 0; this.pn = -1; this.lastMatchedTo = -1; Clazz.instantialize (this, arguments); }, com.stevesoft.pat, "TransPat", com.stevesoft.pat.Pattern); Clazz.prepareFields (c$, function () { this.ra = new Array (10); }); Clazz.overrideMethod (c$, "toString", function () { return "(?#TransPat)"; }); Clazz.makeConstructor (c$, function () { Clazz.superConstructor (this, com.stevesoft.pat.TransPat, []); }); Clazz.defineMethod (c$, "matchInternal", function (pos, pt) { for (var i = 0; i < this.ra_len; i++) { pt.ignoreCase = this.ra[i].ignoreCase; pt.mFlag = this.ra[i].mFlag; pt.dotDoesntMatchCR = com.stevesoft.pat.Regex.dotDoesntMatchCR; var r = this.ra[i].thePattern.matchInternal (pos, pt); if (r >= 0) { this.pn = i; return r; }} this.pn = -1; return -1; }, "~N,com.stevesoft.pat.Pthings"); });