Code completion/hints for Java methods in MATLAB editor?
6 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm a Java developer that supports MATLAB developers with Java libraries/GUIs that they can call from MATLAB. Currently, I need to send the MATLAB developer the JavaDoc for them to determine the available methods and associated method signature (arguments and types). This is because it doesn't appear that the MATLAB editor shows hints for Java classes or we don't know how to turn that feature on.
I imagine I could help them write a simple MATLAB function that prints all the method signatures of a given class using Java Reflection, but it'd be much nicer if the MATLAB editor did that in a context sensitive way. Is there a way to configure the MATLAB editor to show the methods and signatures of a given Java class based on the editor context?
I'm sure I'm not the first one to ask this, but I spent some time searching I didn't find anything that popped out at me.
Thanks,
Rob
0 个评论
采纳的回答
Friedrich
2013-3-25
Hi,
not that I know off, but you can use the methodsview function for that:
>> a = java.lang.String('hallo')
a =
hallo
>> methodsview(a)
>> methodsview('java.lang.String')
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Java from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!