Package: groovy.transform.stc

## [Java] Class SecondParam.Component

- groovy.transform.stc.SecondParam.Component

-     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) { ... }`

- - ### Methods Summary

    Methods
    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. * * Parameters: `node` - the annotated method node * `options` - the hint options * `sourceUnit` - the current source unit * `unit` - the current compilation unit * `usage` - the closure expression or related AST node * Returns: the inferred parameter types

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class PickAnyArgumentHint` | `getParameterTypes`
    `class SingleSignatureClosureHint` | `getClosureSignatures, getParameterTypes`
    `class ClosureSignatureHint` | `findClassNode, getClosureSignatures, pickGenericType, pickGenericType`

- - ### Method Detail

    - #### public ClassNode[] getParameterTypes(MethodNode node, String[] options, SourceUnit sourceUnit, CompilationUnit unit, ASTNode usage)

      * * Returns the single parameter signature accepted by the hinted closure. * *

      Parameters:
        `node` - the annotated method node *
        `options` - the hint options *
        `sourceUnit` - the current source unit *
        `unit` - the current compilation unit *
        `usage` - the closure expression or related AST node *
      Returns:
        the inferred parameter types