1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Start", ["com.stevesoft.pat.patInt"], function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.retIsStart = false;
5 Clazz.instantialize (this, arguments);
6 }, com.stevesoft.pat, "Start", com.stevesoft.pat.Pattern);
7 Clazz.makeConstructor (c$,
9 Clazz.superConstructor (this, com.stevesoft.pat.Start, []);
12 Clazz.overrideMethod (c$, "matchInternal",
14 if (this.retIsStart && pt.mFlag && pos > 0 && pt.src.charAt (pos - 1) == '\n') {
15 return this.nextMatch (pos, pt);
17 return this.nextMatch (pos, pt);
19 }, "~N,com.stevesoft.pat.Pthings");
20 Clazz.overrideMethod (c$, "toString",
22 if (this.retIsStart) {
23 return "^" + this.nextString ();
25 return "\\A" + this.nextString ();
27 Clazz.overrideMethod (c$, "maxChars",
29 return new com.stevesoft.pat.patInt (0);
31 Clazz.overrideMethod (c$, "clone1",
33 return new com.stevesoft.pat.Start (this.retIsStart);
34 }, "java.util.Hashtable");