MCPcopy Index your code
hub / github.com/apache/groovy / getTail

Method getTail

src/main/java/groovy/util/Node.java:258–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256 }
257
258 private List getTail() {
259 List list = parent().children();
260 int afterIndex = list.indexOf(this);
261 List tail = new ArrayList(list.subList(afterIndex + 1, list.size()));
262 list.subList(afterIndex + 1, list.size()).clear();
263 return tail;
264 }
265
266 /**
267 * Adds sibling nodes (defined using builder-style notation via a Closure) after the current node.

Callers 2

replaceNodeMethod · 0.95
appendNodesMethod · 0.95

Calls 6

parentMethod · 0.95
sizeMethod · 0.65
clearMethod · 0.65
childrenMethod · 0.45
indexOfMethod · 0.45
subListMethod · 0.45

Tested by

no test coverage detected