std.object.element.impl.type
add-annotations
added in 3.0
(add-annotations seed obj)adds additional annotations to the class
(common/add-annotations {} String) => {}
IElement
protocol
members
get-declaring-class
(get-declaring-class obj)get-modifiers
(get-modifiers obj)seed
added in 3.0
(seed tag obj)returns the preliminary attributes for creating an element
(common/seed :class String) => (contains {:name “java.lang.String”, :tag :class, :modifiers #{:instance :public :final :class}, :static false, :delegate java.lang.String})
(common/seed :method (.getDeclaredMethod String “charAt” (doto ^“[Ljava.lang.Class;” (make-array Class 1) (aset 0 Integer/TYPE)))) => (contains {:name “charAt”, :tag :method, :container java.lang.String, :modifiers #{:instance :method :public} :static false, :delegate java.lang.reflect.Method})
set-accessible
added in 3.0
(set-accessible obj flag)sets the accessible flag in the class to be true
(common/set-accessible (.getDeclaredMethod String “charAt” (doto ^“[Ljava.lang.Class;” (make-array Class 1) (aset 0 Integer/TYPE))) true)