I want to get a .java file, recognize the first class in the file and getting information about annotations, methods and attributes from this class.
Is there any module in both languages that already does that? I could build up a simple regexp to do it also, but I don't known how to recognize in the regexp the braces indicating the end of the class/method.