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) { ... }
| Type Params | Return Type | Name and description |
|---|---|---|
|
public ClassNode[] |
getParameterTypes(MethodNode node, String[] options, SourceUnit sourceUnit, CompilationUnit unit, ASTNode usage)Returns the single parameter signature accepted by the hinted closure.
|
| Methods inherited from class | Name |
|---|---|
class PickAnyArgumentHint |
getParameterTypes |
class SingleSignatureClosureHint |
getClosureSignatures, getParameterTypes |
class ClosureSignatureHint |
findClassNode, getClosureSignatures, pickGenericType, pickGenericType |
Returns the single parameter signature accepted by the hinted closure.
node - the annotated method nodeoptions - the hint optionssourceUnit - the current source unitunit - the current compilation unitusage - the closure expression or related AST node