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