-
-
Save borkdude/d1bf6a20650862c38ee43c0656d72e39 to your computer and use it in GitHub Desktop.
Decompile with double type hint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; $ clj -Sdeps '{:deps {com.clojure-goes-fast/clj-java-decompiler {:mvn/version "0.3.0"}}}' | |
user=> (require '[clj-java-decompiler.core :refer [decompile]]) | |
nil | |
user=> user=> (decompile (fn [^double x])) | |
// Decompiling class: user$fn__193 | |
import clojure.lang.*; | |
public final class user$fn__193 extends AFunction implements DO | |
{ | |
public static Object invokeStatic(final double x) { | |
return null; | |
} | |
@Override | |
public Object invoke(final Object o) { | |
return invokeStatic(RT.doubleCast(o)); | |
} | |
@Override | |
public final Object invokePrim(final double x) { | |
return invokeStatic(x); | |
} | |
} | |
nil | |
user=> (decompile (fn [x])) | |
// Decompiling class: user$fn__197 | |
import clojure.lang.*; | |
public final class user$fn__197 extends AFunction | |
{ | |
public static Object invokeStatic(final Object x) { | |
return null; | |
} | |
@Override | |
public Object invoke(final Object x) { | |
return invokeStatic(x); | |
} | |
} | |
nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment