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