Doclet not reporting the right method name

Sherlock

Member
Licensed User
Hi,

I've created a dummy class in Eclipse:

public class NewClass {
public void setMethod1(){
}
public void setMethod2(){
}
public void getMethod1(){
}
public void getMethod2(){
}
public void getMethod(){
}

And here is the output after running Javadoc in Eclipse :
<class>
<name>anywheresoftware.b4a.objects.NewClass</name>
<owner>process</owner>
<method>
<name>setMethod1</name>
<comment></comment>
<returntype>void</returntype>
</method>
<method>
<name>setMethod2</name>
<comment></comment>
<returntype>void</returntype>
</method>
<property>
<name>Method</name>
<returntype>void</returntype>
<comment></comment>
</property>
<property>
<name>Method2</name>
<returntype>void</returntype>
<comment></comment>
</property>
<property>
<name>Method1</name>
<returntype>void</returntype>
<comment></comment>
</property>
</class>

All the "get.." where removed from the method name in the XML file.

Any ideas what is wrong?:sign0163:

Tks

Sherlock
 

warwound

Expert
Licensed User
Yes. getMethod and setMethod are converted to Method property.
For example Button.Width is actually Button.getWidth and Button.setWidth.

Note that you can use GetMethod instead of getMethod if you want it to be kept as a method.

That is unless the setter method accepts more than one parameter!

In which case the library method will retain it's set name prefix and remain a method rather than a settable property.

That's logical as there's no way to pass more than one parameter to a settable property.

Martin.
 
Last edited:
Top