Liking cljdoc? Tell your friends :D

clj-bean.core


->prefixclj

(->prefix class-name-symbol)
source

coordinate-mapclj

(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.
sourceraw docstring

defbeancljmacro

(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.
sourceraw docstring

initial-state-valueclj

(initial-state-value type->fields object-fields)
source

sym->upcase-1-strclj

(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
sourceraw docstring

tagged-symclj

(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
sourceraw docstring

type->getter-prefixclj

(type->getter-prefix type)
source

typed-field->accessorsclj

(typed-field->accessors [type name] class-name [type-array-index field-index])
source

typed-field->declarationsclj

(typed-field->declarations [type name])
source

typed-fields->initializerclj

(typed-fields->initializer [type fields])
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close