users@jaxb.java.net

Working on a plugin - need to add a method that returns an array...

From: Schaefer, Don <dschaefer1_at_paychex.com>
Date: Tue, 10 May 2011 13:26:33 -0400

Hello,

Working on a plugin and have a question. When creating a new method I need to specify a return type for the method that has a return type of an array. For example - String[].

How can I accomplish this?

// snippet
JDefinedClass definedClass = ....

// ?? should be specifying the array...
definedClass.method(JMod.PUBLIC, ???, "getArrayOfStuff");

Thanks,
Don.




The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.




image001.gif
(image/gif attachment: image001.gif__size_92__creation-date_)