Revize b3264653
Přidáno uživatelem Jan Havlíček před asi 4 roky(ů)
project/Deserializer/src/jdeserialize/classdesc.java | ||
---|---|---|
228 | 228 |
{ |
229 | 229 |
StringBuffer sb = new StringBuffer(); |
230 | 230 |
String val = ""; |
231 |
|
|
231 |
|
|
232 |
sb.append(indentation).append("{\n"); |
|
233 |
|
|
232 | 234 |
indentation += "\t"; |
233 | 235 |
|
234 | 236 |
// ClassName |
235 |
sb.append("{\n").append(indentation).append("class ").append(this.name);
|
|
237 |
sb.append(indentation).append("class ").append(this.name); |
|
236 | 238 |
// extends |
237 | 239 |
if (this.superclass != null) { |
238 | 240 |
sb.append(" extends ").append(this.superclass.name); |
... | ... | |
274 | 276 |
indentation = indentation.substring(0, indentation.length() - 1); |
275 | 277 |
|
276 | 278 |
sb.append("\n").append(indentation).append("}"); |
277 |
|
|
278 | 279 |
|
279 | 280 |
if(this.superclass != null) |
280 | 281 |
{ |
282 |
indentation = indentation.substring(0, indentation.length() - 1); |
|
283 |
sb.append("\n}"); |
|
281 | 284 |
sb.append(",\n"); |
282 | 285 |
sb.append(this.superclass.toJson(indentation, fielddata)); |
283 | 286 |
} |
284 |
|
|
285 |
indentation = indentation.substring(0, indentation.length() - 1); |
|
286 |
sb.append(indentation).append("\n}"); |
|
287 |
else |
|
288 |
{ |
|
289 |
indentation = indentation.substring(0, indentation.length() - 1); |
|
290 |
sb.append("\n").append(indentation).append("}"); |
|
291 |
} |
|
287 | 292 |
|
288 | 293 |
return sb.toString(); |
289 | 294 |
} |
Také k dispozici: Unified diff
#re#7832 Output Deserializer format done