X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fcom%2Fstevesoft%2Fpat%2FCustom.js;h=44fa656441604712466b48c2fd16edfbebd641b7;hp=4e0fa7277a8c85175734248939a566a1e7e35f13;hb=7301a2415adab88038b291fc54caeeb3a5a47a44;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/com/stevesoft/pat/Custom.js b/bin/com/stevesoft/pat/Custom.js index 4e0fa72..44fa656 100644 --- a/bin/com/stevesoft/pat/Custom.js +++ b/bin/com/stevesoft/pat/Custom.js @@ -1,41 +1,41 @@ -Clazz.declarePackage ("com.stevesoft.pat"); -Clazz.load (["com.stevesoft.pat.PatternSub"], "com.stevesoft.pat.Custom", ["com.stevesoft.pat.Regex"], function () { -c$ = Clazz.decorateAsClass (function () { -this.select = null; -this.v = null; -this.start = 0; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat, "Custom", com.stevesoft.pat.PatternSub); -Clazz.makeConstructor (c$, -function (s) { -Clazz.superConstructor (this, com.stevesoft.pat.Custom, []); -this.select = s; -this.v = com.stevesoft.pat.Regex.validators.get (s); -}, "~S"); -Clazz.defineMethod (c$, "matchInternal", -function (pos, pt) { -this.start = pos; -return this.sub.matchInternal (pos, pt); -}, "~N,com.stevesoft.pat.Pthings"); -Clazz.overrideMethod (c$, "toString", -function () { -var a = this.v.argsave == null ? "" : ":" + this.v.argsave; -return "(??" + this.select + a + ")" + this.nextString (); -}); -Clazz.overrideMethod (c$, "minChars", -function () { -return this.v.minChars (); -}); -Clazz.overrideMethod (c$, "maxChars", -function () { -return this.v.maxChars (); -}); -Clazz.overrideMethod (c$, "clone1", -function (h) { -var c = new com.stevesoft.pat.Custom (this.select); -h.put (c, c); -h.put (this, c); -c.sub = this.sub.clone (h); -return c; -}, "java.util.Hashtable"); -}); +Clazz.declarePackage ("com.stevesoft.pat"); +Clazz.load (["com.stevesoft.pat.PatternSub"], "com.stevesoft.pat.Custom", ["com.stevesoft.pat.Regex"], function () { +c$ = Clazz.decorateAsClass (function () { +this.select = null; +this.v = null; +this.start = 0; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat, "Custom", com.stevesoft.pat.PatternSub); +Clazz.makeConstructor (c$, +function (s) { +Clazz.superConstructor (this, com.stevesoft.pat.Custom, []); +this.select = s; +this.v = com.stevesoft.pat.Regex.validators.get (s); +}, "~S"); +Clazz.defineMethod (c$, "matchInternal", +function (pos, pt) { +this.start = pos; +return this.sub.matchInternal (pos, pt); +}, "~N,com.stevesoft.pat.Pthings"); +Clazz.overrideMethod (c$, "toString", +function () { +var a = this.v.argsave == null ? "" : ":" + this.v.argsave; +return "(??" + this.select + a + ")" + this.nextString (); +}); +Clazz.overrideMethod (c$, "minChars", +function () { +return this.v.minChars (); +}); +Clazz.overrideMethod (c$, "maxChars", +function () { +return this.v.maxChars (); +}); +Clazz.overrideMethod (c$, "clone1", +function (h) { +var c = new com.stevesoft.pat.Custom (this.select); +h.put (c, c); +h.put (this, c); +c.sub = this.sub.clone (h); +return c; +}, "java.util.Hashtable"); +});