I want to create certain files from Java-source files (input: *.java files; output: something). Xtext seems like a good tool for this. Of course, you have to define the grammar (in this case: Java) first. But Xtext should be able to parse Java files and generate some files from them (if I write templates).
Somehow I can not image, that this has not been done before. I looked it up, but did not find anything. So the question is:
Is there a Xtext-grammar file, for Java (which defines the Java grammar)?