What function do I use, in Clojure, to see the methods of a Java object?
user=> (some-function some-java-object)
... lots of methods ...
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use java reflection.
gets you the class. To get methods,
Which gives you an array of methods. You can treat that like a sequence; I’d probably put it into a vector, so: