public class ClosureUtils extends Object
Constructor and Description |
---|
ClosureUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
convertClosureToSource(ReaderSource readerSource,
ClosureExpression expression)
Converts a ClosureExpression into the String source.
|
public static String convertClosureToSource(ReaderSource readerSource, ClosureExpression expression) throws Exception
readerSource
- a sourceexpression
- a closure. Can't be nullIllegalArgumentException
- when expression is nullException
- when closure can't be read from source