1 Clazz.declarePackage ("com.stevesoft.pat");
\r
2 Clazz.load (null, "com.stevesoft.pat.RBuffer", ["java.lang.StringBuffer"], function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
9 Clazz.instantialize (this, arguments);
\r
10 }, com.stevesoft.pat, "RBuffer");
\r
11 Clazz.makeConstructor (c$,
\r
14 Clazz.makeConstructor (c$,
\r
18 Clazz.overrideMethod (c$, "toString",
\r
20 return "sb=" + this.sb.toString ().$replace ('\n', ' ') + " pos=" + this.pos + " epos=" + this.epos + " sb.length()=" + this.sb.length () + "\n" + this.sp (this.pos + 3) + "^" + this.sp (this.epos - this.pos - 1) + "^";
\r
22 Clazz.defineMethod (c$, "sp",
\r
26 }var sb = new StringBuffer (n);
\r
27 for (var i = 0; i < n; i++) {
\r
30 return sb.toString ();
\r