Actually, the support currently provided by MoDisco allows you to automatically obtain EMF models out of you Java code.
These models reflect/represent exactly the content of your Java code, and they conform to a metamodel (defined in EMF Ecore) of the Java language.
I encourage you to take a look to this Java model discovery support via the MoDisco reference documentation (cf. more particularly the parts describing the Java metamodel and corresponding model discoverer).
I hope this helps.