Skip to main content

Class Generation

11
  • definterface

    Creates a new Java interface with the given name and method sigs. The method return types and parameter types may be s...

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

  • gen-class

    When compiling, generates compiled bytecode for a class with the given package-qualified :name (which, as all names in...

  • gen-interface

    When compiling, generates compiled bytecode for an interface with the given package-qualified :name (which, as all nam...

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