Hello,
I am working on a project where I have to write some source code. I
discovered CodeModel, and start to use it.
I would like to generate an annotation for a class, but it seems that what I
would like to do is not implemented:
Exemple :
@RunWith(Arquillian.class)
According to the api, there is some fonctions like that (in JAnnotationUse)
:
JAnnotationUse<
http://codemodel.java.net/nonav/apidocs/com/sun/codemodel/JAnnotationUse.html>
*param<
http://codemodel.java.net/nonav/apidocs/com/sun/codemodel/JAnnotationUse.html#param%28java.lang.String,%20java.lang.Class%29>
*(String <
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html> name,
boolean value)
or
JAnnotationUse<
http://codemodel.java.net/nonav/apidocs/com/sun/codemodel/JAnnotationUse.html>
*param<
http://codemodel.java.net/nonav/apidocs/com/sun/codemodel/JAnnotationUse.html#param%28java.lang.String,%20java.lang.Class%29>
*(String <
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html> name,
Class <
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html>
<?> value)
I would like something like param(Class<?> value). Is it a mistake from me
and it's possible to do it, but I just can't find it ?
Or you just did not implemented it. Any solutions ? Would it be in the next
releases ?
Best regards,
Carl-Philipp Harmant