Skip to main content

Class Generation

8
  • defrecord

    (defrecord name [fields*] options* specs*) Options are expressed as sequential keywords and arguments (in any order)...

  • deftype

    (deftype name [fields*] options* specs*) Options are expressed as sequential keywords and arguments (in any order). ...

  • extend

    Implementations of protocol methods can be provided using the extend construct: (extend AType AProtocol {:fo...

  • extend-protocol

    Useful when you want to provide several implementations of the same protocol all at once. Takes a single protocol and ...

  • extend-type

    A macro that expands into an extend call. Useful when you are supplying the definitions explicitly inline, extend-type...

  • proxy

    class-and-interfaces - a vector of class names args - a (possibly empty) vector of arguments to the superclass cons...

  • proxy-super

    Use to call a superclass method in the body of a proxy method. Note, expansion captures 'this

  • reify

    reify creates an object implementing a protocol or interface. reify is a macro with the following structure: (reify ...