[ 
https://issues.apache.org/jira/browse/GROOVY-11169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Björn Kautler updated GROOVY-11169:
-----------------------------------
    Summary: DelegateHint like ClosureSignatureHint  (was: {{DelegateHint}} 
like {{ClosureSignatureHint}})

> DelegateHint like ClosureSignatureHint
> --------------------------------------
>
>                 Key: GROOVY-11169
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11169
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Björn Kautler
>            Priority: Major
>
> With a {{ClosureSignatureHint}} you can very flexibly calculate the types 
> given to a closure as arguments.
> For the delegate, you currently only have the {{@DelegatesTo}} annotation 
> that is rather limited in comparison, where you can only give a static type 
> as class or string, a {{@DelegatesTo.Target}} annotated parameter, or a 
> generic type relative to a {{@Target}} parameter.
> It would be nice to also have for the {{@DelegatesTo}} the possibility to 
> supply a class of type similar to {{ClosureSignatureHint}}, so for example 
> {{DelegateHint}} that basically gets the same parameters as 
> {{ClosureSignatureHint#getClosureSignatures}} and returns a 
> {{List<ClassNode>}} with possible delegate types.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to