X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fcom%2Fstevesoft%2Fpat%2FEnd.js;h=3df399fad72db2ccf2f1537d35fbb3f5b9f5caf6;hp=b332682c94012a451f6a32362bc7bc48924631f8;hb=7301a2415adab88038b291fc54caeeb3a5a47a44;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/com/stevesoft/pat/End.js b/bin/com/stevesoft/pat/End.js index b332682..3df399f 100644 --- a/bin/com/stevesoft/pat/End.js +++ b/bin/com/stevesoft/pat/End.js @@ -1,38 +1,38 @@ -Clazz.declarePackage ("com.stevesoft.pat"); -Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.End", ["com.stevesoft.pat.patInt"], function () { -c$ = Clazz.decorateAsClass (function () { -this.retIsEnd = false; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat, "End", com.stevesoft.pat.Pattern); -Clazz.makeConstructor (c$, -function (b) { -Clazz.superConstructor (this, com.stevesoft.pat.End, []); -this.retIsEnd = b; -}, "~B"); -Clazz.overrideMethod (c$, "matchInternal", -function (pos, pt) { -if (this.retIsEnd && pt.mFlag && pos < pt.src.length ()) { -if (pt.src.charAt (pos) == '\n') { -return this.nextMatch (pos, pt); -}}if (pt.src.length () == pos) { -return this.nextMatch (pos, pt); -} else if (pos < pt.src.length ()) { -pt.src.charAt (pos); -}return -1; -}, "~N,com.stevesoft.pat.Pthings"); -Clazz.overrideMethod (c$, "toString", -function () { -if (this.retIsEnd) { -return "$"; -} else { -return "\\Z"; -}}); -Clazz.overrideMethod (c$, "maxChars", -function () { -return new com.stevesoft.pat.patInt (1); -}); -Clazz.overrideMethod (c$, "clone1", -function (h) { -return new com.stevesoft.pat.End (this.retIsEnd); -}, "java.util.Hashtable"); -}); +Clazz.declarePackage ("com.stevesoft.pat"); +Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.End", ["com.stevesoft.pat.patInt"], function () { +c$ = Clazz.decorateAsClass (function () { +this.retIsEnd = false; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat, "End", com.stevesoft.pat.Pattern); +Clazz.makeConstructor (c$, +function (b) { +Clazz.superConstructor (this, com.stevesoft.pat.End, []); +this.retIsEnd = b; +}, "~B"); +Clazz.overrideMethod (c$, "matchInternal", +function (pos, pt) { +if (this.retIsEnd && pt.mFlag && pos < pt.src.length ()) { +if (pt.src.charAt (pos) == '\n') { +return this.nextMatch (pos, pt); +}}if (pt.src.length () == pos) { +return this.nextMatch (pos, pt); +} else if (pos < pt.src.length ()) { +pt.src.charAt (pos); +}return -1; +}, "~N,com.stevesoft.pat.Pthings"); +Clazz.overrideMethod (c$, "toString", +function () { +if (this.retIsEnd) { +return "$"; +} else { +return "\\Z"; +}}); +Clazz.overrideMethod (c$, "maxChars", +function () { +return new com.stevesoft.pat.patInt (1); +}); +Clazz.overrideMethod (c$, "clone1", +function (h) { +return new com.stevesoft.pat.End (this.retIsEnd); +}, "java.util.Hashtable"); +});