MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / removeChild

Method removeChild

src/org/kxml2/kdom/Node.java:274–288  ·  view source on GitHub ↗

Removes the child object at the given index

(int idx)

Source from the content-addressed store, hash-verified

272 /** Removes the child object at the given index */
273
274 public void removeChild(int idx) {
275 children.removeElementAt(idx);
276
277 /*** Modification by HHS - start ***/
278 // types.deleteCharAt (index);
279 /***/
280 int n = types.length() - 1;
281
282 for (int i = idx; i < n; i++)
283 types.setCharAt(i, types.charAt(i + 1));
284
285 types.setLength(n);
286
287 /*** Modification by HHS - end ***/
288 }
289
290 /* returns a valid XML representation of this Element including
291 attributes and children.

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.80
setLengthMethod · 0.80

Tested by

no test coverage detected