Prints the value to the current 'out' variable which should be a PrintWriter or at least have a print() method defined on it. If there is no 'out' property then print to standard out.
(Object value)
| 171 | * If there is no 'out' property then print to standard out. |
| 172 | */ |
| 173 | public void print(Object value) { |
| 174 | Object object; |
| 175 | |
| 176 | try { |
| 177 | object = getProperty("out"); |
| 178 | } catch (MissingPropertyException e) { |
| 179 | DefaultGroovyMethods.print(System.out,value); |
| 180 | return; |
| 181 | } |
| 182 | |
| 183 | InvokerHelper.invokeMethod(object, "print", new Object[]{value}); |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Prints the value and a newline to the current 'out' variable which should be a PrintWriter |
nothing calls this directly
no test coverage detected