User Tools

Site Tools


padl_creator_classfile

Differences

This shows you the differences between two versions of the page.


Previous revision
padl_creator_classfile [2025/01/15 21:40] (current) – external edit 127.0.0.1
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.