private static final Logger LOG = LoggerFactory.getLogger(JavaParserCreateCU.class);
public static void main(String[] args) {
CompilationUnit cu = new CompilationUnit();
//set the package
cu.setPackage(new PackageDeclaration(ASTHelper.createNameExpr("cn.shenyanchao.javaparser.test")));
//create the type declaration
ClassOrInterfaceDeclaration type = new ClassOrInterfaceDeclaration(ModifierSet.PUBLIC, false, "HelloWorld");
ASTHelper.addTypeDeclaration(cu, type);
//create a method
MethodDeclaration method = new MethodDeclaration(ModifierSet.PUBLIC, ASTHelper.VOID_TYPE, "main");