Back

Reflector (clj)

(source)

protocol

Protocol for reflection implementers.

Examples

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))
reborg/clojure-essential-reference
(require 'clojure.reflect)
(dir clojure.reflect) ; <1>

;; ->AsmReflector
;; ->Constructor
;; ->Field
;; ->JavaReflector
;; ->Method
;; ClassResolver
;; Reflector
;; TypeReference
;; do-reflect
;; flag-descriptors
;; map->Constructor
;; map->Field
;; map->Method
;; reflect
;; resolve-class
;; type-reflect
;; typename