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&#39;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">&lt;<a href="mailto:richard@kennardconsulting.com">richard@kennardconsulting.com</a>&gt;</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&#39;s own understanding. So for example if I say...<br>
<br>
    field string --named foo<br>
<br>
...Forge knows I&#39;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&#39;ll have to check their signature for &#39;get&#39; or &#39;set&#39; to see if they&#39;re properties. Equally if I do...<br>
<br>
    org.jboss.forge.parser.java.JavaClass.getFields()<br>
<br>
...I&#39;m not really sure if these are properties (and if so, what their getter/setter methods are), or whether they&#39;re just normal internal fields.<br>
<br>
Is there a recommended way to &#39;get back out&#39; 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>&quot;Keep it Simple&quot;<br>