Package com.dragome.compiler.generators

Examples of com.dragome.compiler.generators.DragomeJavaScriptGenerator.visit()


    classUnit.setClassFile(new FileObject(new File(args[1])));
    Parser parser= new Parser(classUnit);
    TypeDeclaration typeDecl= parser.parse();
    DragomeJavaScriptGenerator dragomeJavaScriptGenerator= new DragomeJavaScriptGenerator(Project.singleton);
    dragomeJavaScriptGenerator.setOutputStream(new PrintStream(new FileOutputStream(new File("/tmp/webapp.js"))));
    dragomeJavaScriptGenerator.visit(typeDecl);

    FileInputStream fis= new FileInputStream(new File("/tmp/webapp.js"));
    String md5= org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);
    System.out.println(md5);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.