users@codemodel.java.net

Nested Annotations in Codemodel

From: Jonas von Malottki <yoshtec_at_gmx.net>
Date: Thu, 08 May 2008 13:27:46 +0200

Hello List,

is it possible to generate Nested Annotations with CodeModel like in the
following small example:

//---
@interface Annot1{
   String value();
}

@interface Annot2{
   Annot1[] value();
}

//--- annotated class

@Annot2( {_at_Annot1("hello"),_at_Annot1("World")} )
public class MyClass{
        
}

Thanks for the thoughts,
Greetings
Jonas von Malottki