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)} }
Type Params | Return Type | Name and description |
---|---|---|
|
ClassNode[] |
getParameterTypes(MethodNode node, String[] options, org.codehaus.groovy.control.SourceUnit sourceUnit, org.codehaus.groovy.control.CompilationUnit unit, ASTNode usage) |
Methods inherited from class | Name |
---|---|
class PickAnyArgumentHint |
getParameterTypes |
class SingleSignatureClosureHint |
getClosureSignatures, getParameterTypes |
class ClosureSignatureHint |
findClassNode, getClosureSignatures, pickGenericType, pickGenericType |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |