zzrsoudensan / crossmobile

Automatically exported from code.google.com/p/crossmobile
0 stars 0 forks source link

Strongly typed argument - List<> #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the class UITabBarController, the method setViewControllers takes argument 
List of type UIViewController. However, in the generated java code, the 
argument is just List and not List<UIViewController>

An advice that looks similar to below could be used. This advice will be useful 
even for C wrapper generation. Since the below advice can be used to generate a 
strongly typed java code as well (in case of above mentioned example), which 
would be the right place for this advice? Is it best to have a separate xml 
file, or do you have an thought on this?

<class name="UITabBarController">
 <method name="setViewControllers">
   <argument position="0"
             type="List&lt;UIViewController&gt;"
             retain="true"/>
 </method>

 <method name="getViewControllers">
   <return type="List&lt;UIViewController&gt;"
           release="true"/>
 </method>
</class>

Thanks,

Original issue reported on code.google.com by spoorthi.dsilva@gmail.com on 4 Dec 2011 at 10:27