Liking cljdoc? Tell your friends :D

parity.scaffold

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'.

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'.
raw docstring

emit-bridge-stubsclj

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

emit-protocolclj

(emit-protocol {:keys [name instance interfaces]})

Emit a defprotocol form string for an interface.

Emit a defprotocol form string for an interface.
sourceraw docstring

emit-type-stubclj

(emit-type-stub {:keys [name interfaces instance statics]})

Emit a stub for a concrete type.

Emit a stub for a concrete type.
sourceraw docstring

generate-scaffoldclj

(generate-scaffold)

Generate the full scaffold from host contract. Returns string.

Generate the full scaffold from host contract. Returns string.
sourceraw docstring

java-interface-methodsclj

Methods inherited from java.lang.Object or java.util interfaces, not Clojure.

Methods inherited from java.lang.Object or java.util interfaces, not Clojure.
sourceraw docstring

method-paramsclj

(method-params arity)

Generate param names for a method with given arity.

Generate param names for a method with given arity.
sourceraw docstring

scaffoldclj

(scaffold output-path)

Generate scaffold and write to file.

Generate scaffold and write to file.
sourceraw docstring

unique-methodsclj

(unique-methods methods)

Deduplicate methods by name, keeping highest arity. Filter Java noise.

Deduplicate methods by name, keeping highest arity. Filter Java noise.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close