1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Boundary", ["com.stevesoft.pat.patInt"], function () {
3 c$ = Clazz.declareType (com.stevesoft.pat, "Boundary", com.stevesoft.pat.Pattern);
4 Clazz.overrideMethod (c$, "toString",
6 return "\\b" + this.nextString ();
8 Clazz.defineMethod (c$, "isAChar",
10 if (c >= 'a' && c <= 'z') {
12 }if (c >= 'A' && c <= 'Z') {
14 }if (c >= '0' && c <= '9') {
20 Clazz.defineMethod (c$, "matchLeft",
24 }if (this.isAChar (pt.src.charAt (pos)) && this.isAChar (pt.src.charAt (pos - 1))) {
27 }, "~N,com.stevesoft.pat.Pthings");
28 Clazz.defineMethod (c$, "matchRight",
32 }if (pos + 1 >= pt.src.length ()) {
34 }if (this.isAChar (pt.src.charAt (pos)) && this.isAChar (pt.src.charAt (pos + 1))) {
37 }, "~N,com.stevesoft.pat.Pthings");
38 Clazz.overrideMethod (c$, "matchInternal",
40 if (this.matchRight (pos - 1, pt) || this.matchLeft (pos, pt)) {
41 return this.nextMatch (pos, pt);
43 }, "~N,com.stevesoft.pat.Pthings");
44 Clazz.overrideMethod (c$, "maxChars",
46 return new com.stevesoft.pat.patInt (0);
48 Clazz.overrideMethod (c$, "clone1",
50 return new com.stevesoft.pat.Boundary ();
51 }, "java.util.Hashtable");