Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / lang / StringBuffer.js
index 1645feb..7689b73 100644 (file)
-Clazz.load(["java.lang.AbstractStringBuilder","$.Appendable"],"java.lang.StringBuffer",["java.lang.Character","$.Double","$.Float","$.Long"],function(){\r
-c$=Clazz.declareType(java.lang,"StringBuffer",AbstractStringBuilder,[Appendable,java.io.Serializable,CharSequence]);\r
-Clazz.makeConstructor(c$,\r
-function(cs){\r
-if(cs==null){\r
-throw new NullPointerException();\r
-}\r
-Clazz.superConstructor(this,StringBuffer,[cs.toString()]);\r
-},"CharSequence");\r
-Clazz.defineMethod(c$,"append",\r
-function(b){\r
-return this.append(b?"true":"false");\r
-},"~B");\r
-Clazz.defineMethod(c$,"append",\r
-function(ch){\r
-this.append0(ch);\r
-return this;\r
-},"~N");\r
-Clazz.defineMethod(c$,"append",\r
-function(d){\r
-return this.append(Double.toString(d));\r
-},"~N");\r
-Clazz.defineMethod(c$,"append",\r
-function(obj){\r
-if(obj==null){\r
-this.appendNull();\r
-}else{\r
-this.append0(obj.toString());\r
-}return this;\r
-},"~O");\r
-Clazz.defineMethod(c$,"append",\r
-function(string){\r
-this.append0(string);\r
-return this;\r
-},"~S");\r
-Clazz.defineMethod(c$,"append",\r
-function(sb){\r
-if(sb==null){\r
-this.appendNull();\r
-}else{\r
-{\r
-this.append0(sb.getValue(),0,sb.length());\r
-}}return this;\r
-},"StringBuffer");\r
-Clazz.defineMethod(c$,"append",\r
-function(chars){\r
-this.append0(chars);\r
-return this;\r
-},"~A");\r
-Clazz.defineMethod(c$,"append",\r
-function(chars,start,length){\r
-this.append0(chars,start,length);\r
-return this;\r
-},"~A,~N,~N");\r
-Clazz.defineMethod(c$,"append",\r
-function(s){\r
-if(s==null){\r
-this.appendNull();\r
-}else{\r
-this.append0(s.toString());\r
-}return this;\r
-},"CharSequence");\r
-Clazz.defineMethod(c$,"append",\r
-function(s,start,end){\r
-this.append0(s,start,end);\r
-return this;\r
-},"CharSequence,~N,~N");\r
-Clazz.defineMethod(c$,"appendCodePoint",\r
-function(codePoint){\r
-return this.append(Character.toChars(codePoint));\r
-},"~N");\r
-Clazz.defineMethod(c$,"$delete",\r
-function(start,end){\r
-this.delete0(start,end);\r
-return this;\r
-},"~N,~N");\r
-Clazz.defineMethod(c$,"deleteCharAt",\r
-function(location){\r
-this.deleteCharAt0(location);\r
-return this;\r
-},"~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,ch){\r
-this.insert0(index,ch);\r
-return this;\r
-},"~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,b){\r
-return this.insert(index,b?"true":"false");\r
-},"~N,~B");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,i){\r
-return this.insert(index,Integer.toString(i));\r
-},"~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,l){\r
-return this.insert(index,Long.toString(l));\r
-},"~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,d){\r
-return this.insert(index,Double.toString(d));\r
-},"~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,f){\r
-return this.insert(index,Float.toString(f));\r
-},"~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,obj){\r
-return this.insert(index,obj==null?"null":obj.toString());\r
-},"~N,~O");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,string){\r
-this.insert0(index,string);\r
-return this;\r
-},"~N,~S");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,chars){\r
-this.insert0(index,chars);\r
-return this;\r
-},"~N,~A");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,chars,start,length){\r
-this.insert0(index,chars,start,length);\r
-return this;\r
-},"~N,~A,~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,s){\r
-this.insert0(index,s==null?"null":s.toString());\r
-return this;\r
-},"~N,CharSequence");\r
-Clazz.defineMethod(c$,"insert",\r
-function(index,s,start,end){\r
-this.insert0(index,s,start,end);\r
-return this;\r
-},"~N,CharSequence,~N,~N");\r
-Clazz.defineMethod(c$,"replace",\r
-function(start,end,string){\r
-this.replace0(start,end,string);\r
-return this;\r
-},"~N,~N,~S");\r
-Clazz.defineMethod(c$,"reverse",\r
-function(){\r
-this.reverse0();\r
-return this;\r
-});\r
-Clazz.overrideMethod(c$,"subSequence",\r
-function(start,end){\r
-return Clazz.superCall(this,StringBuffer,"substring",[start,end]);\r
-},"~N,~N");\r
-});\r
+Clazz.load(["java.lang.AbstractStringBuilder","$.Appendable"],"java.lang.StringBuffer",["java.lang.Character","$.Double","$.Float","$.Long"],function(){
+c$=Clazz.declareType(java.lang,"StringBuffer",AbstractStringBuilder,[Appendable,java.io.Serializable,CharSequence]);
+Clazz.makeConstructor(c$,
+function(cs){
+if(cs==null){
+throw new NullPointerException();
+}
+Clazz.superConstructor(this,StringBuffer,[cs.toString()]);
+},"CharSequence");
+Clazz.defineMethod(c$,"append",
+function(b){
+return this.append(b?"true":"false");
+},"~B");
+Clazz.defineMethod(c$,"append",
+function(ch){
+this.append0(ch);
+return this;
+},"~N");
+Clazz.defineMethod(c$,"append",
+function(d){
+return this.append(Double.toString(d));
+},"~N");
+Clazz.defineMethod(c$,"append",
+function(obj){
+if(obj==null){
+this.appendNull();
+}else{
+this.append0(obj.toString());
+}return this;
+},"~O");
+Clazz.defineMethod(c$,"append",
+function(string){
+this.append0(string);
+return this;
+},"~S");
+Clazz.defineMethod(c$,"append",
+function(sb){
+if(sb==null){
+this.appendNull();
+}else{
+{
+this.append0(sb.getValue(),0,sb.length());
+}}return this;
+},"StringBuffer");
+Clazz.defineMethod(c$,"append",
+function(chars){
+this.append0(chars);
+return this;
+},"~A");
+Clazz.defineMethod(c$,"append",
+function(chars,start,length){
+this.append0(chars,start,length);
+return this;
+},"~A,~N,~N");
+Clazz.defineMethod(c$,"append",
+function(s){
+if(s==null){
+this.appendNull();
+}else{
+this.append0(s.toString());
+}return this;
+},"CharSequence");
+Clazz.defineMethod(c$,"append",
+function(s,start,end){
+this.append0(s,start,end);
+return this;
+},"CharSequence,~N,~N");
+Clazz.defineMethod(c$,"appendCodePoint",
+function(codePoint){
+return this.append(Character.toChars(codePoint));
+},"~N");
+Clazz.defineMethod(c$,"$delete",
+function(start,end){
+this.delete0(start,end);
+return this;
+},"~N,~N");
+Clazz.defineMethod(c$,"deleteCharAt",
+function(location){
+this.deleteCharAt0(location);
+return this;
+},"~N");
+Clazz.defineMethod(c$,"insert",
+function(index,ch){
+this.insert0(index,ch);
+return this;
+},"~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(index,b){
+return this.insert(index,b?"true":"false");
+},"~N,~B");
+Clazz.defineMethod(c$,"insert",
+function(index,i){
+return this.insert(index,Integer.toString(i));
+},"~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(index,l){
+return this.insert(index,Long.toString(l));
+},"~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(index,d){
+return this.insert(index,Double.toString(d));
+},"~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(index,f){
+return this.insert(index,Float.toString(f));
+},"~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(index,obj){
+return this.insert(index,obj==null?"null":obj.toString());
+},"~N,~O");
+Clazz.defineMethod(c$,"insert",
+function(index,string){
+this.insert0(index,string);
+return this;
+},"~N,~S");
+Clazz.defineMethod(c$,"insert",
+function(index,chars){
+this.insert0(index,chars);
+return this;
+},"~N,~A");
+Clazz.defineMethod(c$,"insert",
+function(index,chars,start,length){
+this.insert0(index,chars,start,length);
+return this;
+},"~N,~A,~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(index,s){
+this.insert0(index,s==null?"null":s.toString());
+return this;
+},"~N,CharSequence");
+Clazz.defineMethod(c$,"insert",
+function(index,s,start,end){
+this.insert0(index,s,start,end);
+return this;
+},"~N,CharSequence,~N,~N");
+Clazz.defineMethod(c$,"replace",
+function(start,end,string){
+this.replace0(start,end,string);
+return this;
+},"~N,~N,~S");
+Clazz.defineMethod(c$,"reverse",
+function(){
+this.reverse0();
+return this;
+});
+Clazz.overrideMethod(c$,"subSequence",
+function(start,end){
+return Clazz.superCall(this,StringBuffer,"substring",[start,end]);
+},"~N,~N");
+});