Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / lang / StringBuilder.js
1 Clazz.load(["java.lang.AbstractStringBuilder","$.Appendable"],"java.lang.StringBuilder",["java.lang.Double","$.Float","$.Long"],function(){
2 c$=Clazz.declareType(java.lang,"StringBuilder",AbstractStringBuilder,[Appendable,CharSequence,java.io.Serializable]);
3 Clazz.makeConstructor(c$,
4 function(seq){
5 Clazz.superConstructor(this,StringBuilder,[seq.toString()]);
6 },"CharSequence");
7 Clazz.defineMethod(c$,"append",
8 function(b){
9 this.append0(b?"true":"false");
10 return this;
11 },"~B");
12 Clazz.defineMethod(c$,"append",
13 function(c){
14 this.append0(c);
15 return this;
16 },"~N");
17 Clazz.defineMethod(c$,"append",
18 function(i){
19 this.append0(Integer.toString(i));
20 return this;
21 },"~N");
22 Clazz.defineMethod(c$,"append",
23 function(lng){
24 this.append0(Long.toString(lng));
25 return this;
26 },"~N");
27 Clazz.defineMethod(c$,"append",
28 function(f){
29 this.append0(Float.toString(f));
30 return this;
31 },"~N");
32 Clazz.defineMethod(c$,"append",
33 function(d){
34 this.append0(Double.toString(d));
35 return this;
36 },"~N");
37 Clazz.defineMethod(c$,"append",
38 function(obj){
39 if(obj==null){
40 this.appendNull();
41 }else{
42 this.append0(obj.toString());
43 }return this;
44 },"~O");
45 Clazz.defineMethod(c$,"append",
46 function(str){
47 this.append0(str);
48 return this;
49 },"~S");
50 Clazz.defineMethod(c$,"append",
51 function(sb){
52 if(sb==null){
53 this.appendNull();
54 }else{
55 this.append0(sb.getValue(),0,sb.length());
56 }return this;
57 },"StringBuffer");
58 Clazz.defineMethod(c$,"append",
59 function(ch){
60 this.append0(ch);
61 return this;
62 },"~A");
63 Clazz.defineMethod(c$,"append",
64 function(str,offset,len){
65 this.append0(str,offset,len);
66 return this;
67 },"~A,~N,~N");
68 Clazz.defineMethod(c$,"append",
69 function(csq){
70 if(csq==null){
71 this.appendNull();
72 }else{
73 this.append0(csq.toString());
74 }return this;
75 },"CharSequence");
76 Clazz.defineMethod(c$,"append",
77 function(csq,start,end){
78 this.append0(csq,start,end);
79 return this;
80 },"CharSequence,~N,~N");
81 Clazz.defineMethod(c$,"$delete",
82 function(start,end){
83 this.delete0(start,end);
84 return this;
85 },"~N,~N");
86 Clazz.defineMethod(c$,"deleteCharAt",
87 function(index){
88 this.deleteCharAt0(index);
89 return this;
90 },"~N");
91 Clazz.defineMethod(c$,"insert",
92 function(offset,b){
93 this.insert0(offset,b?"true":"false");
94 return this;
95 },"~N,~B");
96 Clazz.defineMethod(c$,"insert",
97 function(offset,c){
98 this.insert0(offset,c);
99 return this;
100 },"~N,~N");
101 Clazz.defineMethod(c$,"insert",
102 function(offset,i){
103 this.insert0(offset,Integer.toString(i));
104 return this;
105 },"~N,~N");
106 Clazz.defineMethod(c$,"insert",
107 function(offset,l){
108 this.insert0(offset,Long.toString(l));
109 return this;
110 },"~N,~N");
111 Clazz.defineMethod(c$,"insert",
112 function(offset,f){
113 this.insert0(offset,Float.toString(f));
114 return this;
115 },"~N,~N");
116 Clazz.defineMethod(c$,"insert",
117 function(offset,d){
118 this.insert0(offset,Double.toString(d));
119 return this;
120 },"~N,~N");
121 Clazz.defineMethod(c$,"insert",
122 function(offset,obj){
123 this.insert0(offset,obj==null?"null":obj.toString());
124 return this;
125 },"~N,~O");
126 Clazz.defineMethod(c$,"insert",
127 function(offset,str){
128 this.insert0(offset,str);
129 return this;
130 },"~N,~S");
131 Clazz.defineMethod(c$,"insert",
132 function(offset,ch){
133 this.insert0(offset,ch);
134 return this;
135 },"~N,~A");
136 Clazz.defineMethod(c$,"insert",
137 function(offset,str,strOffset,strLen){
138 this.insert0(offset,str,strOffset,strLen);
139 return this;
140 },"~N,~A,~N,~N");
141 Clazz.defineMethod(c$,"insert",
142 function(offset,s){
143 this.insert0(offset,s==null?"null":s.toString());
144 return this;
145 },"~N,CharSequence");
146 Clazz.defineMethod(c$,"insert",
147 function(offset,s,start,end){
148 this.insert0(offset,s,start,end);
149 return this;
150 },"~N,CharSequence,~N,~N");
151 Clazz.defineMethod(c$,"replace",
152 function(start,end,str){
153 this.replace0(start,end,str);
154 return this;
155 },"~N,~N,~S");
156 Clazz.defineMethod(c$,"reverse",
157 function(){
158 this.reverse0();
159 return this;
160 });
161 });