.newPackageDeclaration();
packageDeclaration.setName(ast.newSimpleName(pkg
.getElementName()));
unit.setPackage(packageDeclaration);
TypeDeclaration type = ast.newTypeDeclaration();
Javadoc comment = ast.newJavadoc();
TagElement tag = ast.newTagElement();
TextElement text = ast.newTextElement();
text.setText("Generated class for method "
+ methodDec.getName());
tag.fragments().add(text);
comment.tags().add(tag);
type.setJavadoc(comment);
type.setInterface(false);
type.modifiers()
.add(ast.newModifier(Modifier.ModifierKeyword.PUBLIC_KEYWORD));
type.setName(ast.newSimpleName(className));