blob: 4cc802f165299e42d3b38a453619804c5e74111f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
(ns swank.util.java)
(defn member-name [#^java.lang.reflect.Member member]
(.getName member))
(defn member-static? [#^java.lang.reflect.Member member]
(java.lang.reflect.Modifier/isStatic (.getModifiers member)))
(defn static-methods [#^Class class]
(filter member-static? (.getMethods class)))
(defn static-fields [#^Class class]
(filter member-static? (.getDeclaredFields class)))
(defn instance-methods [#^Class class]
(remove member-static? (.getMethods class)))
|