Back

reflect (clj)

(source)

function

(reflect obj & options)
Alpha - subject to change. Reflect on the type of obj (or obj itself if obj is a class). Return value and options are the same as for type-reflect.

Examples

babashka/babashka
(ns babashka.impl.clojure.reflect
  (:require [clojure.reflect]
            [sci.core :as sci]))

(def rns (sci/create-ns 'clojure.reflect))

(def reflect-namespace {'reflect (sci/copy-var clojure.reflect/reflect rns)})
jonase/eastwood
(ns testcases.unusednss3
  (:require [clojure.core.protocols :as protocols]
            [clojure.core.reducers  :as reducers]
            [clojure.data           :as data]
            [clojure.java.io        :as io]
            [clojure.reflect        :as reflect]))

(deftype Bar [whatever]
  reflect/Reflector
  (do-reflect [reflector typeref] nil))
lambdaisland/witchcraft
(require '[clojure.reflect :as r])

(r/reflect (first (cp/classpath-jarfiles)))
arnaudsj/core.nlp
(ns core.nlp.utils
  (:require [clojure.reflect :as r]))

(set! *warn-on-reflection* true)
(set! *unchecked-math* true)