This shows you the differences between two versions of the page.
padl_creator_classfile [2018/03/04 02:53] |
padl_creator_classfile [2019/10/06 20:37] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== PADL Creator ClassFile ====== | ||
+ | A PADL model is typically created from some Java bytecodes using the following code: | ||
+ | |||
+ | <code> | ||
+ | final ICodeLevelModel codeLevelModel = | ||
+ | Factory.getInstance().createCodeLevelModel("A"); | ||
+ | codeLevelModel.create( | ||
+ | new CompleteClassFileCreator( | ||
+ | DefaultFileRepository.getInstance(), | ||
+ | new String[] { "dir1/dir2/A.class" }), true); | ||
+ | </code> | ||
+ | |||
+ | :!: The ''padl.generator.helper.ModelGenerator'' interface in project ''[[PADL Generator]]'' hides the implementation details of creating a PADL model and should be used in most of the cases. |