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