The function print-methods
is intended to be used inside a REPL. Just copy and paste it to your REPL and enjoy:
main=> ; paste print-methods
main=> (print-methods 1)
class java.lang.Long
-----------
bitCount(long) -> int
byteValue() -> byte
compare(long, long) -> int
;...
Nice! The built-in clojure.reflect does all the Java reflection to Clojure data conversion by for you by the way, so you could just rewrite this in terms of Clojure data processing too (see clojure.reflect/type-reflect for details on the format):