Public Variables and Functions
->AsmReflector
functionUsage: (->AsmReflector class-resolver)
Positional factory function for class clojure.reflect.AsmReflector.
Source
->Constructor
functionUsage: (->Constructor name declaring-class parameter-types exception-types flags)
Positional factory function for class clojure.reflect.Constructor.
Source
->Field
functionUsage: (->Field name type declaring-class flags)
Positional factory function for class clojure.reflect.Field.
Source
->JavaReflector
functionUsage: (->JavaReflector classloader)
Positional factory function for class clojure.reflect.JavaReflector.
Source
->Method
functionUsage: (->Method name return-type declaring-class parameter-types exception-types flags)
Positional factory function for class clojure.reflect.Method.
Source
flag-descriptors
varThe Java access bitflags, along with their friendly names andthe kinds of objects to which they can apply.
Source
map->Constructor
functionUsage: (map->Constructor m#)
Factory function for class clojure.reflect.Constructor, taking a map of keywords to field values.
Source
map->Field
functionUsage: (map->Field m#)
Factory function for class clojure.reflect.Field, taking a map of keywords to field values.
Source
map->Method
functionUsage: (map->Method m#)
Factory function for class clojure.reflect.Method, taking a map of keywords to field values.
Source
reflect
functionUsage: (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.
Added in Clojure version 1.3
Source
type-reflect
functionUsage: (type-reflect typeref & options)
Alpha - subject to change. Reflect on a typeref, returning a map with :bases, :flags, and:members. In the discussion below, names are always Clojure symbols. :bases a set of names of the type's bases :flags a set of keywords naming the boolean attributes of the type. :members a set of the type's members. Each member is a map and can be a constructor, method, or field. Keys common to all members: :name name of the type :declaring-class name of the declarer :flags keyword naming boolean attributes of the member Keys specific to constructors: :parameter-types vector of parameter type names :exception-types vector of exception type names Key specific to methods: :parameter-types vector of parameter type names :exception-types vector of exception type names :return-type return type name Keys specific to fields: :type type name Options: :ancestors in addition to the keys described above, also include an :ancestors key with the entire set of ancestors, and add all ancestor members to :members. :reflector implementation to use. Defaults to JavaReflector, AsmReflector is also an option.
Added in Clojure version 1.3
Source