Hey Richard, <br><br>Sorry in advance for the short answer.<br><br>There is currently no API to ask which methods belong to a property, but I do see great value in this. It wouldn't be hard to provide. Care to file a JIRA for it?<br>
<br>Thanks,<br>Lincoln<br><br><div class="gmail_quote">On Fri, Oct 28, 2011 at 12:26 AM, Richard Kennard <span dir="ltr"><<a href="mailto:richard@kennardconsulting.com">richard@kennardconsulting.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi guys,<br>
<br>
As I understand it, Forge has an understanding of your project that transcends Java's own understanding. So for example if I say...<br>
<br>
field string --named foo<br>
<br>
...Forge knows I'm creating a property, and it creates getters and setters for that property. But later if I do...<br>
<br>
org.jboss.forge.parser.java.JavaClass.getMethods()<br>
<br>
...then I get back just normal methods. I'll have to check their signature for 'get' or 'set' to see if they're properties. Equally if I do...<br>
<br>
org.jboss.forge.parser.java.JavaClass.getFields()<br>
<br>
...I'm not really sure if these are properties (and if so, what their getter/setter methods are), or whether they're just normal internal fields.<br>
<br>
Is there a recommended way to 'get back out' the list of properties for a class? Something that tells me a) the field; b) the getter; c) the setter?<br>
<br>
Richard.<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>"Keep it Simple"<br>