[forge-dev] Adding a field of array type

Lincoln Baxter, III lincolnbaxter at gmail.com
Mon Jul 23 10:53:05 EDT 2012

Hey Ivan!

You're correct, the JDT probably doesn't have a convenient method for this
(it doesn't have much that is convenient,) but what are your proposed


On Sat, Jul 21, 2012 at 4:04 PM, Ivan St. Ivanov
<ivan.st.ivanov at gmail.com>wrote:

> Hi folks,
> I wonder is it possible to add a field to a JavaClass and to set an array
> as its type. The setType(String) method does not support arrays yet and I
> don't want to use the other two variants of this method (taking Class and
> JavaResource parameters).
> I looked at the mentioned method (setType(String)). And found a suitable
> place where I could add the support for arrays. However, I'm afraid that
> JDT's AST class does not have a convenient newArray....() method.
> Or maybe I'm missing something?
> Cheers,
> Ivan
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev

Lincoln Baxter, III
"Simpler is better."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20120723/414bc4a2/attachment.html 

More information about the forge-dev mailing list