Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / lang / StringBuilder.js
index 7f474c3..13bcc9f 100644 (file)
-Clazz.load(["java.lang.AbstractStringBuilder","$.Appendable"],"java.lang.StringBuilder",["java.lang.Double","$.Float","$.Long"],function(){\r
-c$=Clazz.declareType(java.lang,"StringBuilder",AbstractStringBuilder,[Appendable,CharSequence,java.io.Serializable]);\r
-Clazz.makeConstructor(c$,\r
-function(seq){\r
-Clazz.superConstructor(this,StringBuilder,[seq.toString()]);\r
-},"CharSequence");\r
-Clazz.defineMethod(c$,"append",\r
-function(b){\r
-this.append0(b?"true":"false");\r
-return this;\r
-},"~B");\r
-Clazz.defineMethod(c$,"append",\r
-function(c){\r
-this.append0(c);\r
-return this;\r
-},"~N");\r
-Clazz.defineMethod(c$,"append",\r
-function(i){\r
-this.append0(Integer.toString(i));\r
-return this;\r
-},"~N");\r
-Clazz.defineMethod(c$,"append",\r
-function(lng){\r
-this.append0(Long.toString(lng));\r
-return this;\r
-},"~N");\r
-Clazz.defineMethod(c$,"append",\r
-function(f){\r
-this.append0(Float.toString(f));\r
-return this;\r
-},"~N");\r
-Clazz.defineMethod(c$,"append",\r
-function(d){\r
-this.append0(Double.toString(d));\r
-return this;\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(str){\r
-this.append0(str);\r
-return this;\r
-},"~S");\r
-Clazz.defineMethod(c$,"append",\r
-function(sb){\r
-if(sb==null){\r
-this.appendNull();\r
-}else{\r
-this.append0(sb.getValue(),0,sb.length());\r
-}return this;\r
-},"StringBuffer");\r
-Clazz.defineMethod(c$,"append",\r
-function(ch){\r
-this.append0(ch);\r
-return this;\r
-},"~A");\r
-Clazz.defineMethod(c$,"append",\r
-function(str,offset,len){\r
-this.append0(str,offset,len);\r
-return this;\r
-},"~A,~N,~N");\r
-Clazz.defineMethod(c$,"append",\r
-function(csq){\r
-if(csq==null){\r
-this.appendNull();\r
-}else{\r
-this.append0(csq.toString());\r
-}return this;\r
-},"CharSequence");\r
-Clazz.defineMethod(c$,"append",\r
-function(csq,start,end){\r
-this.append0(csq,start,end);\r
-return this;\r
-},"CharSequence,~N,~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(index){\r
-this.deleteCharAt0(index);\r
-return this;\r
-},"~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,b){\r
-this.insert0(offset,b?"true":"false");\r
-return this;\r
-},"~N,~B");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,c){\r
-this.insert0(offset,c);\r
-return this;\r
-},"~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,i){\r
-this.insert0(offset,Integer.toString(i));\r
-return this;\r
-},"~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,l){\r
-this.insert0(offset,Long.toString(l));\r
-return this;\r
-},"~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,f){\r
-this.insert0(offset,Float.toString(f));\r
-return this;\r
-},"~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,d){\r
-this.insert0(offset,Double.toString(d));\r
-return this;\r
-},"~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,obj){\r
-this.insert0(offset,obj==null?"null":obj.toString());\r
-return this;\r
-},"~N,~O");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,str){\r
-this.insert0(offset,str);\r
-return this;\r
-},"~N,~S");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,ch){\r
-this.insert0(offset,ch);\r
-return this;\r
-},"~N,~A");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,str,strOffset,strLen){\r
-this.insert0(offset,str,strOffset,strLen);\r
-return this;\r
-},"~N,~A,~N,~N");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,s){\r
-this.insert0(offset,s==null?"null":s.toString());\r
-return this;\r
-},"~N,CharSequence");\r
-Clazz.defineMethod(c$,"insert",\r
-function(offset,s,start,end){\r
-this.insert0(offset,s,start,end);\r
-return this;\r
-},"~N,CharSequence,~N,~N");\r
-Clazz.defineMethod(c$,"replace",\r
-function(start,end,str){\r
-this.replace0(start,end,str);\r
-return this;\r
-},"~N,~N,~S");\r
-Clazz.defineMethod(c$,"reverse",\r
-function(){\r
-this.reverse0();\r
-return this;\r
-});\r
-});\r
+Clazz.load(["java.lang.AbstractStringBuilder","$.Appendable"],"java.lang.StringBuilder",["java.lang.Double","$.Float","$.Long"],function(){
+c$=Clazz.declareType(java.lang,"StringBuilder",AbstractStringBuilder,[Appendable,CharSequence,java.io.Serializable]);
+Clazz.makeConstructor(c$,
+function(seq){
+Clazz.superConstructor(this,StringBuilder,[seq.toString()]);
+},"CharSequence");
+Clazz.defineMethod(c$,"append",
+function(b){
+this.append0(b?"true":"false");
+return this;
+},"~B");
+Clazz.defineMethod(c$,"append",
+function(c){
+this.append0(c);
+return this;
+},"~N");
+Clazz.defineMethod(c$,"append",
+function(i){
+this.append0(Integer.toString(i));
+return this;
+},"~N");
+Clazz.defineMethod(c$,"append",
+function(lng){
+this.append0(Long.toString(lng));
+return this;
+},"~N");
+Clazz.defineMethod(c$,"append",
+function(f){
+this.append0(Float.toString(f));
+return this;
+},"~N");
+Clazz.defineMethod(c$,"append",
+function(d){
+this.append0(Double.toString(d));
+return this;
+},"~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(str){
+this.append0(str);
+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(ch){
+this.append0(ch);
+return this;
+},"~A");
+Clazz.defineMethod(c$,"append",
+function(str,offset,len){
+this.append0(str,offset,len);
+return this;
+},"~A,~N,~N");
+Clazz.defineMethod(c$,"append",
+function(csq){
+if(csq==null){
+this.appendNull();
+}else{
+this.append0(csq.toString());
+}return this;
+},"CharSequence");
+Clazz.defineMethod(c$,"append",
+function(csq,start,end){
+this.append0(csq,start,end);
+return this;
+},"CharSequence,~N,~N");
+Clazz.defineMethod(c$,"$delete",
+function(start,end){
+this.delete0(start,end);
+return this;
+},"~N,~N");
+Clazz.defineMethod(c$,"deleteCharAt",
+function(index){
+this.deleteCharAt0(index);
+return this;
+},"~N");
+Clazz.defineMethod(c$,"insert",
+function(offset,b){
+this.insert0(offset,b?"true":"false");
+return this;
+},"~N,~B");
+Clazz.defineMethod(c$,"insert",
+function(offset,c){
+this.insert0(offset,c);
+return this;
+},"~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(offset,i){
+this.insert0(offset,Integer.toString(i));
+return this;
+},"~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(offset,l){
+this.insert0(offset,Long.toString(l));
+return this;
+},"~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(offset,f){
+this.insert0(offset,Float.toString(f));
+return this;
+},"~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(offset,d){
+this.insert0(offset,Double.toString(d));
+return this;
+},"~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(offset,obj){
+this.insert0(offset,obj==null?"null":obj.toString());
+return this;
+},"~N,~O");
+Clazz.defineMethod(c$,"insert",
+function(offset,str){
+this.insert0(offset,str);
+return this;
+},"~N,~S");
+Clazz.defineMethod(c$,"insert",
+function(offset,ch){
+this.insert0(offset,ch);
+return this;
+},"~N,~A");
+Clazz.defineMethod(c$,"insert",
+function(offset,str,strOffset,strLen){
+this.insert0(offset,str,strOffset,strLen);
+return this;
+},"~N,~A,~N,~N");
+Clazz.defineMethod(c$,"insert",
+function(offset,s){
+this.insert0(offset,s==null?"null":s.toString());
+return this;
+},"~N,CharSequence");
+Clazz.defineMethod(c$,"insert",
+function(offset,s,start,end){
+this.insert0(offset,s,start,end);
+return this;
+},"~N,CharSequence,~N,~N");
+Clazz.defineMethod(c$,"replace",
+function(start,end,str){
+this.replace0(start,end,str);
+return this;
+},"~N,~N,~S");
+Clazz.defineMethod(c$,"reverse",
+function(){
+this.reverse0();
+return this;
+});
+});