Liking cljdoc? Tell your friends :D

flatland.useful.java


abortclj

(abort & message)

Print message then exit.

Print message then exit.
sourceraw docstring

constructclj

(construct class & args)

Construct a new instance of class using reflection.

Construct a new instance of class using reflection.
sourceraw docstring

invoke-privateclj

(invoke-private instance method & params)

Invoke a private or protected Java method. Be very careful when using this! I take no responsibility for the trouble you get yourself into.

Invoke a private or protected Java method. Be very careful when using this!
I take no responsibility for the trouble you get yourself into.
sourceraw docstring

multi-hinted-letcljmacro

(multi-hinted-let [name expr classes] & body)

Test expr for instance-of each class in classes. When a match is found, evaluate body with name bound to expr and type-hinted as the matching class.

For example, (multi-hinted-let [x {:foo 1} [Collection Map]] (.size x)).

Test expr for instance-of each class in classes. When a match is found,
evaluate body with name bound to expr and type-hinted as the matching class.

For example, (multi-hinted-let [x {:foo 1} [Collection Map]] (.size x)).
sourceraw docstring

on-shutdownclj

(on-shutdown f)

Execute the given function on jvm shutdown.

Execute the given function on jvm shutdown.
sourceraw docstring

trapclj

(trap signal f)

Register signal handling function.

Register signal handling function.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close