Awesome job with this library, it makes it so easy to do naughty things to your Java code ;-)
So here I am trying to build some custom extensions and found myself in a pickle when it comes to TypeParam and its bounds. Here's one method signature I'd like to generate
<M extends griffon.core.GriffonModel, V extends griffon.core.GriffonView, C extends griffon.core.GriffonController> void withMVCGroup(java.lang.String arg0, griffon.core.MVCClosure<M, V, C> arg1)
Using MethodDecl I attach the following TypeParam definitions
Never mind, I was sending the wrong parameter to TypeParam. Also, though there's no sample usage of Wildcard() I discovered this is what I need for the 2nd question. So... nothing to see here. Closing.
Hi there,
Awesome job with this library, it makes it so easy to do naughty things to your Java code ;-)
So here I am trying to build some custom extensions and found myself in a pickle when it comes to TypeParam and its bounds. Here's one method signature I'd like to generate
Using MethodDecl I attach the following TypeParam definitions
It all appears to be peachy, but when I print out the node before returning from the annotation handler I get this
Needless to say I'm stumped. Is there a special way to make TypeParams work with bounds? Also, what about creating types with wildcards, such as
Thanks!