X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fcom%2Fstevesoft%2Fpat%2FAny.js;h=503de21fa7833358c48d83ff83642a176133401f;hp=f129d92fcccc9f6a49dc7a1c0381c0ef0d029024;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/com/stevesoft/pat/Any.js b/site/j2s/com/stevesoft/pat/Any.js index f129d92..503de21 100644 --- a/site/j2s/com/stevesoft/pat/Any.js +++ b/site/j2s/com/stevesoft/pat/Any.js @@ -1,30 +1,30 @@ -Clazz.declarePackage ("com.stevesoft.pat"); -Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Any", ["com.stevesoft.pat.patInt"], function () { -c$ = Clazz.declareType (com.stevesoft.pat, "Any", com.stevesoft.pat.Pattern); -Clazz.overrideMethod (c$, "matchInternal", -function (pos, pt) { -if (pos < pt.src.length ()) { -if (pt.dotDoesntMatchCR) { -if (pt.src.charAt (pos) != '\n') { -return this.nextMatch (pos + 1, pt); -}} else { -return this.nextMatch (pos + 1, pt); -}}return -1; -}, "~N,com.stevesoft.pat.Pthings"); -Clazz.overrideMethod (c$, "toString", -function () { -return "." + this.nextString (); -}); -Clazz.overrideMethod (c$, "minChars", -function () { -return new com.stevesoft.pat.patInt (1); -}); -Clazz.overrideMethod (c$, "maxChars", -function () { -return new com.stevesoft.pat.patInt (1); -}); -Clazz.overrideMethod (c$, "clone1", -function (h) { -return new com.stevesoft.pat.Any (); -}, "java.util.Hashtable"); -}); +Clazz.declarePackage ("com.stevesoft.pat"); +Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Any", ["com.stevesoft.pat.patInt"], function () { +c$ = Clazz.declareType (com.stevesoft.pat, "Any", com.stevesoft.pat.Pattern); +Clazz.overrideMethod (c$, "matchInternal", +function (pos, pt) { +if (pos < pt.src.length ()) { +if (pt.dotDoesntMatchCR) { +if (pt.src.charAt (pos) != '\n') { +return this.nextMatch (pos + 1, pt); +}} else { +return this.nextMatch (pos + 1, pt); +}}return -1; +}, "~N,com.stevesoft.pat.Pthings"); +Clazz.overrideMethod (c$, "toString", +function () { +return "." + this.nextString (); +}); +Clazz.overrideMethod (c$, "minChars", +function () { +return new com.stevesoft.pat.patInt (1); +}); +Clazz.overrideMethod (c$, "maxChars", +function () { +return new com.stevesoft.pat.patInt (1); +}); +Clazz.overrideMethod (c$, "clone1", +function (h) { +return new com.stevesoft.pat.Any (); +}, "java.util.Hashtable"); +});