[Java] Class Component
- groovy.transform.stc.SecondParam.Component
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
Type Params | Return Type | Name and description |
---|---|---|
ClassNode[] |
getParameterTypes(MethodNode node, String[] options, SourceUnit sourceUnit, CompilationUnit unit, ASTNode usage) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class PickAnyArgumentHint | getParameterTypes |
class SingleSignatureClosureHint | getClosureSignatures, getParameterTypes |
class ClosureSignatureHint | findClassNode, getClosureSignatures, pickGenericType, pickGenericType |
Method Detail
@Override public ClassNode[] getParameterTypes(MethodNode node, String[] options, SourceUnit sourceUnit, CompilationUnit unit, ASTNode usage)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/groovy/transform/stc/SecondParam.Component.html