gen-class Questions

3

In my Leiningen project: (defproject com.stackoverflow.clojure/tests "0.1.0-SNAPSHOT" :description "Tests of Clojure test-framework." :url "http://example.com/FIXME" :license {:name "Eclipse Pu...
Plater asked 17/10, 2014 at 7:37

3

Solved

Is it possible to attach metadata to a Clojure gen-class? I am trying to implement a server that uses a library that requires Java annotations added to classes. From Chas Emerick's, et al., forth...
Seaside asked 9/10, 2011 at 12:22

1

Solved

I'm trying to use gen-class to override the compare(WriteableComparable a, WriteableComparable b) method in this class in clojure. The complication comes from the fact that this method is overloade...
Blaze asked 25/9, 2015 at 2:29

1

Solved

In My Clojure-code I'd like to generate a class-file that contains a static method (named staticMethod), which is later on called by in a static context from a Java-program. I tried (Clojure): (n...
Damoiselle asked 17/10, 2014 at 12:31

1

Solved

How can i define multiple constructors and states using gen-class in clojure? I do not see a way to do this with single valued mappings for :init, :state and :constructors.
Celloidin asked 13/9, 2013 at 6:55

2

Solved

in the :constructors map and subsequent -init definitions, how do I represent a varargs constructor (assuming the superclass has multiple constructors of which one is varargs) ?
1

© 2022 - 2024 — McMap. All rights reserved.