public static class SecondParam.Component extends SecondParam
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:
void <T> doWithArray(String first, T[] array, @ClosureParams(FirstParam.Component.class) Closure c) { ... }SecondParam.Component, SecondParam.FirstGenericType, SecondParam.SecondGenericType, SecondParam.ThirdGenericType| Constructor | Description |
|---|---|
Component() |
| Modifier and Type | Method | Description |
|---|---|---|
ClassNode[] |
getParameterTypes(MethodNode node,
String[] options,
SourceUnit sourceUnit,
CompilationUnit unit,
ASTNode usage) |
findClassNode, pickGenericType, pickGenericTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClosureSignaturespublic ClassNode[] getParameterTypes(MethodNode node, String[] options, SourceUnit sourceUnit, CompilationUnit unit, ASTNode usage)
getParameterTypes in class PickAnyArgumentHint