X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fcom%2Fstevesoft%2Fpat%2Fwrap%2FStringBufferWrap.js;h=ea57230a66e8c2c019b9c1d5f2187b53f396e2fa;hp=811c54853a3e3413460aa418a7073aed751c2336;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/com/stevesoft/pat/wrap/StringBufferWrap.js b/site/j2s/com/stevesoft/pat/wrap/StringBufferWrap.js index 811c548..ea57230 100644 --- a/site/j2s/com/stevesoft/pat/wrap/StringBufferWrap.js +++ b/site/j2s/com/stevesoft/pat/wrap/StringBufferWrap.js @@ -1,34 +1,34 @@ -Clazz.declarePackage ("com.stevesoft.pat.wrap"); -Clazz.load (["com.stevesoft.pat.BasicStringBufferLike", "java.lang.StringBuffer"], "com.stevesoft.pat.wrap.StringBufferWrap", ["com.stevesoft.pat.wrap.StringWrap"], function () { -c$ = Clazz.decorateAsClass (function () { -this.sb = null; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat.wrap, "StringBufferWrap", null, com.stevesoft.pat.BasicStringBufferLike); -Clazz.prepareFields (c$, function () { -this.sb = new StringBuffer (); -}); -Clazz.overrideMethod (c$, "appendC", -function (c) { -this.sb.append (c); -}, "~S"); -Clazz.overrideMethod (c$, "append", -function (s) { -this.sb.append (s); -}, "~S"); -Clazz.defineMethod (c$, "length", -function () { -return this.sb.length (); -}); -Clazz.overrideMethod (c$, "toString", -function () { -return this.sb.toString (); -}); -Clazz.overrideMethod (c$, "toStringLike", -function () { -return new com.stevesoft.pat.wrap.StringWrap (this.sb.toString ()); -}); -Clazz.overrideMethod (c$, "unwrap", -function () { -return this.sb; -}); -}); +Clazz.declarePackage ("com.stevesoft.pat.wrap"); +Clazz.load (["com.stevesoft.pat.BasicStringBufferLike", "java.lang.StringBuffer"], "com.stevesoft.pat.wrap.StringBufferWrap", ["com.stevesoft.pat.wrap.StringWrap"], function () { +c$ = Clazz.decorateAsClass (function () { +this.sb = null; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat.wrap, "StringBufferWrap", null, com.stevesoft.pat.BasicStringBufferLike); +Clazz.prepareFields (c$, function () { +this.sb = new StringBuffer (); +}); +Clazz.overrideMethod (c$, "appendC", +function (c) { +this.sb.append (c); +}, "~S"); +Clazz.overrideMethod (c$, "append", +function (s) { +this.sb.append (s); +}, "~S"); +Clazz.defineMethod (c$, "length", +function () { +return this.sb.length (); +}); +Clazz.overrideMethod (c$, "toString", +function () { +return this.sb.toString (); +}); +Clazz.overrideMethod (c$, "toStringLike", +function () { +return new com.stevesoft.pat.wrap.StringWrap (this.sb.toString ()); +}); +Clazz.overrideMethod (c$, "unwrap", +function () { +return this.sb; +}); +});