Code completion/hints for Java methods in MATLAB editor?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Friedrich
am 25 Mär. 2013
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Call Java from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!