Generate protocol stubs and type scaffolding from JVM host contract.
Uses reflection data from parity.analyze.roots to emit:
Output is valid .cljc that compiles but throws 'not yet implemented'.
Generate protocol stubs and type scaffolding from JVM host contract. Uses reflection data from parity.analyze.roots to emit: - defprotocol for each clojure.lang interface - Bridge function stubs for RT/Numbers/Util - Concrete type stubs (defrecord or TODO markers) Output is valid .cljc that compiles but throws 'not yet implemented'.
(emit-bridge-stubs class-name {:keys [ops]})Emit function stubs for a bridge class (RT, Numbers, Util).
Emit function stubs for a bridge class (RT, Numbers, Util).
(emit-protocol {:keys [name instance interfaces]})Emit a defprotocol form string for an interface.
Emit a defprotocol form string for an interface.
(emit-type-stub {:keys [name interfaces instance statics]})Emit a stub for a concrete type.
Emit a stub for a concrete type.
(generate-scaffold)Generate the full scaffold from host contract. Returns string.
Generate the full scaffold from host contract. Returns string.
Methods inherited from java.lang.Object or java.util interfaces, not Clojure.
Methods inherited from java.lang.Object or java.util interfaces, not Clojure.
(method-params arity)Generate param names for a method with given arity.
Generate param names for a method with given arity.
(scaffold output-path)Generate scaffold and write to file.
Generate scaffold and write to file.
(unique-methods methods)Deduplicate methods by name, keeping highest arity. Filter Java noise.
Deduplicate methods by name, keeping highest arity. Filter Java noise.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |