Morning folks,
I'm trying to figure out how to set up nested annotations using the XJC
CodeModel.
For example, I want to generate this sort of thing:
@X({
@Y(a="b"),
@Y(c="d")
})
public class C {}
Once I've added the @X (using JAnnotatable.annotate), the returned
JAnnotationUse object doesn't seem to offer a way of adding the @Y
array, it only offers methods to add scalar parameters.
What am I missing?
kenny