Code completion/hints for Java methods in MATLAB editor?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Friedrich
il 25 Mar 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Call Java from MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!