title: Parsing Java Class From Perl or Python
body: <p>I want to get a .java file, recognize the first class in the file, and get information about annotations, methods and attributes from this class.</p>
  
  <p>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.</p>