X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fcom%2Fstevesoft%2Fpat%2FStart.js;fp=site%2Fj2s%2Fcom%2Fstevesoft%2Fpat%2FStart.js;h=1ef02d72fedc278bedcd9839c0b55fa8104fea69;hp=56168b10829483d026fd04cca862e9d423b012aa;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/com/stevesoft/pat/Start.js b/site/j2s/com/stevesoft/pat/Start.js index 56168b1..1ef02d7 100644 --- a/site/j2s/com/stevesoft/pat/Start.js +++ b/site/j2s/com/stevesoft/pat/Start.js @@ -1,35 +1,35 @@ -Clazz.declarePackage ("com.stevesoft.pat"); -Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Start", ["com.stevesoft.pat.patInt"], function () { -c$ = Clazz.decorateAsClass (function () { -this.retIsStart = false; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat, "Start", com.stevesoft.pat.Pattern); -Clazz.makeConstructor (c$, -function (b) { -Clazz.superConstructor (this, com.stevesoft.pat.Start, []); -this.retIsStart = b; -}, "~B"); -Clazz.overrideMethod (c$, "matchInternal", -function (pos, pt) { -if (this.retIsStart && pt.mFlag && pos > 0 && pt.src.charAt (pos - 1) == '\n') { -return this.nextMatch (pos, pt); -}if (pos == 0) { -return this.nextMatch (pos, pt); -}return -1; -}, "~N,com.stevesoft.pat.Pthings"); -Clazz.overrideMethod (c$, "toString", -function () { -if (this.retIsStart) { -return "^" + this.nextString (); -} else { -return "\\A" + this.nextString (); -}}); -Clazz.overrideMethod (c$, "maxChars", -function () { -return new com.stevesoft.pat.patInt (0); -}); -Clazz.overrideMethod (c$, "clone1", -function (h) { -return new com.stevesoft.pat.Start (this.retIsStart); -}, "java.util.Hashtable"); -}); +Clazz.declarePackage ("com.stevesoft.pat"); +Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Start", ["com.stevesoft.pat.patInt"], function () { +c$ = Clazz.decorateAsClass (function () { +this.retIsStart = false; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat, "Start", com.stevesoft.pat.Pattern); +Clazz.makeConstructor (c$, +function (b) { +Clazz.superConstructor (this, com.stevesoft.pat.Start, []); +this.retIsStart = b; +}, "~B"); +Clazz.overrideMethod (c$, "matchInternal", +function (pos, pt) { +if (this.retIsStart && pt.mFlag && pos > 0 && pt.src.charAt (pos - 1) == '\n') { +return this.nextMatch (pos, pt); +}if (pos == 0) { +return this.nextMatch (pos, pt); +}return -1; +}, "~N,com.stevesoft.pat.Pthings"); +Clazz.overrideMethod (c$, "toString", +function () { +if (this.retIsStart) { +return "^" + this.nextString (); +} else { +return "\\A" + this.nextString (); +}}); +Clazz.overrideMethod (c$, "maxChars", +function () { +return new com.stevesoft.pat.patInt (0); +}); +Clazz.overrideMethod (c$, "clone1", +function (h) { +return new com.stevesoft.pat.Start (this.retIsStart); +}, "java.util.Hashtable"); +});