Package groovy.transform.stc
Class SecondParam.Component
java.lang.Object
groovy.transform.stc.ClosureSignatureHint
groovy.transform.stc.SingleSignatureClosureHint
groovy.transform.stc.PickAnyArgumentHint
groovy.transform.stc.SecondParam
groovy.transform.stc.SecondParam.Component
- Enclosing class:
- SecondParam
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) { ... }- 
Nested Class SummaryNested classes/interfaces inherited from class groovy.transform.stc.SecondParamSecondParam.Component, SecondParam.FirstGenericType, SecondParam.SecondGenericType, SecondParam.ThirdGenericType
- 
Constructor SummaryConstructors Constructor Description Component()
- 
Method SummaryModifier and Type Method Description ClassNode[]getParameterTypes(MethodNode node, java.lang.String[] options, SourceUnit sourceUnit, CompilationUnit unit, ASTNode usage)Methods inherited from class groovy.transform.stc.SingleSignatureClosureHintgetClosureSignaturesMethods inherited from class groovy.transform.stc.ClosureSignatureHintfindClassNode, pickGenericType, pickGenericTypeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
Componentpublic Component()
 
- 
- 
Method Details- 
getParameterTypespublic ClassNode[] getParameterTypes(MethodNode node, java.lang.String[] options, SourceUnit sourceUnit, CompilationUnit unit, ASTNode usage)- Overrides:
- getParameterTypesin class- PickAnyArgumentHint
 
 
-