Dave Wolber at USF did have a project called the App Inventor Java Bridge that could take an App Inventor project and generate an Eclipse project with corresponding Java code. I don't know that it has been kept up with the more recent development of App Inventor though, but it may work for simple apps.