(coordinate-map type->fields)
The bean's state is an (object) array of arrays. There is one array for each primitive type, and one element for object fields. Each primitive field can be looked up by the index of the array for its type, and then indexing that array with the field's index within it. Object fields can be found through their index in the object array. In short, each field has a two-dimensional coordinate in the bean's state. The first coordinate of object fields will be nil. This function returns a map from the field's symbol to its coordinates.
The bean's state is an (object) array of arrays. There is one array for each primitive type, and one element for object fields. Each primitive field can be looked up by the index of the array for its type, and then indexing that array with the field's index within it. Object fields can be found through their index in the object array. In short, each field has a two-dimensional coordinate in the bean's state. The first coordinate of object fields will be nil. This function returns a map from the field's symbol to its coordinates.
(defbean class-name typed-fields)
Generates a Java bean. The fields are a set of field type and name.
Generates a Java bean. The fields are a set of field type and name.
(sym->upcase-1-str sym)
Converts the first character of a symbol's name to uppercase, returns a string
Converts the first character of a symbol's name to uppercase, returns a string
(tagged-sym sym-name tag-value)
Returns a symbol with the given sym-name and :tag in metadata set to tag-value
Returns a symbol with the given sym-name and :tag in metadata set to tag-value
(typed-field->accessors [type name] class-name [type-array-index field-index])
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close