Package com.dragome.compiler.generators

Examples of com.dragome.compiler.generators.DragomeJavaScriptGenerator


    fileManager= new FileManager(classpath, classpathFilter);
    //  Project.singleton= null; //TODO revisar esto, impide cacheo!!
    Project project= Project.createSingleton(getCacheFile());
    assembly.setProject(project);
    assembly.setClasspathFilter(classpathFilter);
    generator= new DragomeJavaScriptGenerator(project);
    //  generator= new JavaScriptGenerator(project);

    errorCount= 0;

    Collection<String> allFilesInClasspath= fileManager.getAllFilesInClasspath();
View Full Code Here


    Project.createSingleton(null);
    ClassUnit classUnit= new ClassUnit(Project.singleton, Project.singleton.getSignature(className));
    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

    fileManager= new FileManager(classpath, classpathFilter);
    //  Project.singleton= null; //TODO revisar esto, impide cacheo!!
    Project project= Project.createSingleton(getCacheFile());
    assembly.setProject(project);
    assembly.setClasspathFilter(classpathFilter);
    generator= new DragomeJavaScriptGenerator(project);
    //  generator= new JavaScriptGenerator(project);

    errorCount= 0;

    Collection<String> allFilesInClasspath= fileManager.getAllFilesInClasspath();
View Full Code Here

TOP

Related Classes of com.dragome.compiler.generators.DragomeJavaScriptGenerator

Copyright © 2018 www.massapicom. 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.