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

Method printName

src/main/java/groovy/util/NodePrinter.java:102–109  ·  view source on GitHub ↗

Prints the node name. @param node the node whose name should be printed

(Node node)

Source from the content-addressed store, hash-verified

100 * @param node the node whose name should be printed
101 */
102 protected void printName(Node node) {
103 Object name = node.name();
104 if (name != null) {
105 out.print(name.toString());
106 } else {
107 out.print("null");
108 }
109 }
110
111 /**
112 * Prints a node value list.

Callers 1

printMethod · 0.95

Calls 3

nameMethod · 0.65
toStringMethod · 0.65
printMethod · 0.45

Tested by

no test coverage detected