| Modifier and Type | Field and Description |
|---|---|
| private final Closure | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public V | Returns: The final result of the trampolineOverrides groovy. Implements java. |
| public V | Returns: The final result of the trampolinecould be a single value or a List of values arguments)Overrides groovy. |
| public V | Returns: The final result of the trampolineOverrides groovy. |
| public int | getMaximumNumberOfParameters()
Delegates to the wrapped closure
|
| public Class | getParameterTypes()
Overrides groovy. |
| private V | |
| public Closure | Returns: An instance of TrampolineClosure wrapping the original closure after currying.Parameters to curry to the underlying closure. args)Overrides groovy. |
| public Closure | Returns: An instance of TrampolineClosure wrapping the original closure.Overrides groovy. |
| original | back to summary |
|---|---|
| private final Closure<V> original | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TrampolineClosure | back to summary |
|---|---|
| pack-priv TrampolineClosure(final Closure<V> original) | |
| call | back to summary |
|---|---|
| public V call() Overrides groovy. Implements java. Starts the trampoline loop and calls the wrapped closure as the first step.
| |
| call | back to summary |
|---|---|
| public V call(final Object arguments) Overrides groovy. Starts the trampoline loop and calls the wrapped closure as the first step.
| |
| call | back to summary |
|---|---|
| public V call(final Object... args) Overrides groovy. Starts the trampoline loop and calls the wrapped closure as the first step.
| |
| getMaximumNumberOfParameters | back to summary |
|---|---|
| public int getMaximumNumberOfParameters() Overrides groovy. Delegates to the wrapped closure
| |
| getParameterTypes | back to summary |
|---|---|
| public Class Overrides groovy. Delegates to the wrapped closure
| |
| loop | back to summary |
|---|---|
| private V loop(final Object lastResult) | |
| trampoline | back to summary |
|---|---|
| public Closure Overrides groovy. Builds a trampolined variant of the current closure. | |
| trampoline | back to summary |
|---|---|
| public Closure Overrides groovy. Returns itself, since it is a good enough trampolined variant of the current closure. | |