0

Anybody know if in Java there´s something like Scala macro to interact with the javac in compilation time. Reflection it´s quite powerful, but only works on runtime.

paul
  • 11,696
  • 19
  • 81
  • 134
  • 2
    A quick search on Google comes up with a definitive *NO*. Did your search fail? – Bob Dalgleish Oct 13 '17 at 23:34
  • I did not find anything. But it's hard to believe that java don't offer a similar feature being so powerful to create DSLs – paul Oct 14 '17 at 07:26

1 Answers1

3

In Java there are no macros like in Scala but there is kind of macros like in C++.

Can I have macros in Java source files

Macros in Java?

Using scala macro from java

Dmytro Mitin
  • 37,305
  • 2
  • 20
  • 53