M
M
m0392011-11-08 23:05:01
Java
m039, 2011-11-08 23:05:01

Java code generator? (Android)?

More and more often, the task arises to get rid of the bulkiness of Java, and sometimes it’s just unbearable to look at a function definition in 2+ lines. Therefore, there is more desire to look towards scala, clojure and other languages.
But everything is not so simple, because the main programming is done for android, and it turns out that the opengl example (swimming square) on scala works more or less quickly, while hello-world (just a TextView) on clojure starts about 17+ seconds . I like the first solution and will most likely switch to it, but at the moment this is not my goal in itself (but I would like the second solution).
But before looking at other languages ​​(including scala), I would like to find or understand some method using annotations in Java.
Here's a simple example that I want to achieve to begin with: how do I make all the methods in my classes public so I don't have to explicitly state them? If this is done using annotations, then what are the pros and cons of this method? And if without annotations, how?
If you can also suggest where to look to understand how to tweak the Java language for your purposes, it will be very great.
Thanks
PS I have a great desire to expand the language myself, rather than use a ready-made solution. Therefore, such a language as xtend (from recent news) does not quite suit me, but maybe I'll look at the source code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
glebkk, 2011-11-09
@glebkk

I would look towards JetBrains MPS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question