public class SecondParam extends PickAnyArgumentHint
A hint used to instruct the type checker to pick the second parameter type. For example:
public <T,U> def doWith(T first, U second, @ClosureParams(SecondParam.class) Closure c) { c.call(src); }
This class has several inner classes that also helps picking generic argument types instead of the parameter type.
Modifier and Type | Class and Description |
---|---|
static class |
SecondParam.Component
A hint used to instruct the type checker to pick the type of the component of the second parameter type, which is therefore
expected to be an array, like in this example:
|
static class |
SecondParam.FirstGenericType
A hint used to instruct the type checker to pick the first generic type of the second parameter type.
|
static class |
SecondParam.SecondGenericType
A hint used to instruct the type checker to pick the second generic type of the second parameter type.
|
static class |
SecondParam.ThirdGenericType
A hint used to instruct the type checker to pick the second generic type of the second parameter type.
|
Constructor and Description |
---|
SecondParam() |
getParameterTypes
getClosureSignatures
findClassNode, pickGenericType, pickGenericType