Return type | Name and parameters |
---|---|
Object
|
asType(Class type)
Coerces the closure to an implementation of the given class. |
boolean
|
isNotCase(Object switchValue)
|
void
|
print(Object value)
Print a value to the standard output stream. |
void
|
printf(String format, Object value)
Printf a value to the standard output stream using a format string. |
void
|
printf(String format, Object[] values)
Printf 0 or more values to the standard output stream using a format string. |
void
|
println()
Print a linebreak to the standard output stream. |
void
|
println(Object value)
Print a value (followed by a newline) to the standard output stream. |
addShutdownHook
, any
, any
, asBoolean
, asType
, collect
, collect
, collect
, dump
, each
, eachMatch
, eachMatch
, eachWithIndex
, every
, every
, find
, find
, findAll
, findAll
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, getAt
, getMetaClass
, getMetaPropertyValues
, getProperties
, grep
, grep
, hasProperty
, identity
, inject
, inject
, inspect
, invokeMethod
, is
, isCase
, isNotCase
, iterator
, metaClass
, print
, print
, printf
, printf
, println
, println
, println
, putAt
, respondsTo
, respondsTo
, setMetaClass
, split
, sprintf
, sprintf
, stream
, tap
, toString
, use
, use
, use
, with
, with
, withCloseable
, withStream
, withTraits
Coerces the closure to an implementation of the given class. The class is assumed to be an interface or class with a single method definition. The closure is used as the implementation of that single method.
type
- the target typePrint a value to the standard output stream. This method delegates to the owner to execute the method.
value
- the value to printPrintf a value to the standard output stream using a format string. This method delegates to the owner to execute the method.
format
- a format stringvalue
- value referenced by the format specifier in the format stringPrintf 0 or more values to the standard output stream using a format string. This method delegates to the owner to execute the method.
format
- a format stringvalues
- values referenced by the format specifiers in the format stringPrint a linebreak to the standard output stream. This method delegates to the owner to execute the method.
Print a value (followed by a newline) to the standard output stream. This method delegates to the owner to execute the method.
value
- the value to print