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

Method println

src/main/java/groovy/lang/Script.java:155–166  ·  view source on GitHub ↗

Prints a newline to the current 'out' variable which should be a PrintWriter or at least have a println() method defined on it. If there is no 'out' property then print to standard out.

()

Source from the content-addressed store, hash-verified

153 * If there is no 'out' property then print to standard out.
154 */
155 public void println() {
156 Object object;
157
158 try {
159 object = getProperty("out");
160 } catch (MissingPropertyException e) {
161 System.out.println();
162 return;
163 }
164
165 InvokerHelper.invokeMethod(object, "println", ArgumentListExpression.EMPTY_ARRAY);
166 }
167
168 /**
169 * Prints the value to the current 'out' variable which should be a PrintWriter

Callers 15

mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
runMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
some_functionMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
chameneosMethod · 0.45

Calls 3

getPropertyMethod · 0.95
invokeMethodMethod · 0.95
printlnMethod · 0.95

Tested by 1