Package groovy.transform.stc
Class ThirdParam.Component
java.lang.Object
groovy.transform.stc.ClosureSignatureHint
groovy.transform.stc.SingleSignatureClosureHint
groovy.transform.stc.PickAnyArgumentHint
groovy.transform.stc.ThirdParam
groovy.transform.stc.ThirdParam.Component
- Enclosing class:
- 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) { ... }- 
Nested Class SummaryNested classes/interfaces inherited from class groovy.transform.stc.ThirdParamThirdParam.Component, ThirdParam.FirstGenericType, ThirdParam.SecondGenericType, ThirdParam.ThirdGenericType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetParameterTypes(MethodNode node, String[] options, SourceUnit sourceUnit, CompilationUnit unit, ASTNode usage) Methods inherited from class groovy.transform.stc.SingleSignatureClosureHintgetClosureSignaturesMethods inherited from class groovy.transform.stc.ClosureSignatureHintfindClassNode, pickGenericType, pickGenericType
- 
Constructor Details- 
Componentpublic Component()
 
- 
- 
Method Details- 
getParameterTypespublic ClassNode[] getParameterTypes(MethodNode node, String[] options, SourceUnit sourceUnit, CompilationUnit unit, ASTNode usage) - Overrides:
- getParameterTypesin class- PickAnyArgumentHint
 
 
-