public static class ThirdParam.Component extends ThirdParam
A hint used to instruct the type checker to pick the type of the component of the third parameter type, which is therefore expected to be an array, like in this example:
void <T> doWithArray(String first, int second, T[] third, @ClosureParams(FirstParam.Component.class) Closure c) { ... }ThirdParam.Component, ThirdParam.FirstGenericType, ThirdParam.SecondGenericType, ThirdParam.ThirdGenericType| Constructor and Description |
|---|
Component() |
| Modifier and Type | Method and Description |
|---|---|
ClassNode[] |
getParameterTypes(MethodNode node,
String[] options,
SourceUnit sourceUnit,
CompilationUnit unit,
ASTNode usage) |
getClosureSignaturesfindClassNode, pickGenericType, pickGenericTypepublic ClassNode[] getParameterTypes(MethodNode node, String[] options, SourceUnit sourceUnit, CompilationUnit unit, ASTNode usage)
getParameterTypes in class PickAnyArgumentHint