At runtime, in my Java program, given a String, I 'd like to know the return type. For example:
1 + 1returnsint1L + 1Lreturnslong1L + 1returnslong1 + 1.5returnsdouble1 + 2 - 3 * 4 / 5returnsint1 / 0returnsint1 + Math.nextInt()returnsint1.5 + Math.nextInt()returnsdouble
How can I do this with the JDK runtime compiler, ECJ or any other dependency?
Aucun commentaire:
Enregistrer un commentaire