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

Method plus

src/main/java/groovy/util/Node.java:271–276  ·  view source on GitHub ↗

Adds sibling nodes (defined using builder-style notation via a Closure) after the current node. @param c A Closure defining the new sibling nodes to add using builder-style notation.

(Closure c)

Source from the content-addressed store, hash-verified

269 * @param c A Closure defining the new sibling nodes to add using builder-style notation.
270 */
271 public void plus(Closure c) {
272 if (parent() == null) {
273 throw new UnsupportedOperationException("Adding sibling nodes to the root node is not supported");
274 }
275 appendNodes(c);
276 }
277
278 private void appendNodes(Closure c) {
279 List tail = getTail();

Callers 4

testAppendStringMethod · 0.45
testAppendString2Method · 0.45
testAppendGStringMethod · 0.45
testAppendGString2Method · 0.45

Calls 2

parentMethod · 0.95
appendNodesMethod · 0.95

Tested by 4

testAppendStringMethod · 0.36
testAppendString2Method · 0.36
testAppendGStringMethod · 0.36
testAppendGString2Method · 0.36