| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the source the closure was created froma source readerSource, final ClosureExpression a closure. Can't be null expression)Converts a ClosureExpression into the String source. |
| public static Parameter[] | |
| public static String | getResolveStrategyName(final int resolveStrategy)
Returns the constant name associated with the given resolve strategy. |
| public static boolean | Returns: true if the ClosureExpression has an implicit 'it' parameter
|
| public static boolean | Returns: true if it has exactly one argument and the type is char or Charactera Closure c)Does the Closure have a single char-like (char or Character) argument. |
| public static boolean | Returns: true if it has exactly one argument and the type is Stringa Closure c)Does the Closure have a single String argument. |
| ClosureUtils | back to summary |
|---|---|
| public ClosureUtils() | |
| convertClosureToSource | back to summary |
|---|---|
| public static String convertClosureToSource(final ReaderSource readerSource, final ClosureExpression expression) throws Exception Converts a ClosureExpression into the String source.
| |
| getParametersSafe | back to summary |
|---|---|
public static Parameter[] getParametersSafe(final ClosureExpression ce)
| |
| getResolveStrategyName | back to summary |
|---|---|
| public static String getResolveStrategyName(final int resolveStrategy) Returns the constant name associated with the given resolve strategy.
| |
| hasImplicitParameter | back to summary |
|---|---|
public static boolean hasImplicitParameter(final ClosureExpression ce)
| |
| hasSingleCharacterArg | back to summary |
|---|---|
| public static boolean hasSingleCharacterArg(final Closure<V> c) Does the Closure have a single char-like (char or Character) argument.
| |
| hasSingleStringArg | back to summary |
|---|---|
| public static boolean hasSingleStringArg(final Closure<V> c) Does the Closure have a single String argument.
| |