This is an old revision of the document!
Two third-party projects provide means to create a PADL model from Java source code (instead of Java class files). Fetch the projects PADL Creator JavaFile (JavaC)
or PADL Creator JavaFile (Eclipse)
from the SVN and use the usual idiom:
final ICodeLevelModel padlModelFromJavaFiles = Factory.getInstance().createCodeLevelModel("My name"); try { padlModelFromJavaFiles.create(new CompleteJavaFileCreator( sourcePathEntry, classPathEntry)); } catch (final CreationException e) { e.printStackTrace(ProxyConsole.getInstance().errorOutput()); }
The project PADL Creator JavaFile (Eclipse)
is preferred over PADL Creator JavaFile (JavaC)
, which is no longer maintained.