Examples of compile()


Examples of org.mvel2.templates.TemplateCompiler.compile()

    public void testPluginNode() {
        Map<String, Class<? extends org.mvel2.templates.res.Node>> plugins = new HashMap<String, Class<? extends org.mvel2.templates.res.Node>>();
        plugins.put("testNode", TestPluginNode.class);

        TemplateCompiler compiler = new TemplateCompiler("Foo:@testNode{}!!", plugins);
        CompiledTemplate compiled = compiler.compile();

        assertEquals("Foo:THIS_IS_A_TEST!!", TemplateRuntime.execute(compiled));
    }

View Full Code Here

Examples of org.objectweb.asm.jbfc.BFCompiler.compile()

        FileReader r = new FileReader(fileName);

        ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);
        BFCompiler c = new BFCompiler();
        if (verbose) {
            c.compile(r, className, fileName, new TraceClassVisitor(cw,
                    new PrintWriter(System.out)));
        } else {
            c.compile(r, className, fileName, cw);
        }
View Full Code Here

Examples of org.openquark.cal.compiler.ProgramModifier.compile()

        if (statusListener != null) {
            newProgramModifier.addStatusListener(statusListener);
        }
       
        try {
            newProgramModifier.compile(definitionGroup, logger, dirtyModulesOnly);
           
        } finally {
            if (statusListener != null) {
                newProgramModifier.removeStatusListener(statusListener);
            }
View Full Code Here

Examples of org.openquark.cal.services.WorkspaceManager.compile()

       
        // If there are no errors go ahead and compile the workspace.
        if (ml.getMaxSeverity().compareTo(CompilerMessage.Severity.ERROR) < 0) {
            WorkspaceManager.CompilationOptions options = new WorkspaceManager.CompilationOptions();
            options.setForceCodeRegeneration(forceCodeRegen);
            workspaceManager.compile(ml, dirtyOnly, null, options);
        }
       
        long compileTime = System.currentTimeMillis() - startCompile;
       
        boolean compilationSucceeded;
View Full Code Here

Examples of org.ow2.asm.jbfc.BFCompiler.compile()

        FileReader r = new FileReader(fileName);

        ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);
        BFCompiler c = new BFCompiler();
        if (verbose) {
            c.compile(r, className, fileName, new TraceClassVisitor(cw,
                    new PrintWriter(System.out)));
        } else {
            c.compile(r, className, fileName, cw);
        }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.wizard.DataSchemaCompiler.compile()

      dataFactory.open();
      try
      {
        final TableModel reportData = queryReportData(parent.getQuery(), parent.getQueryTimeout(), dataFactory);
        final DataSchema dataSchema = dataSchemaCompiler.compile
            (reportData, expressions, parameterRow, parameterDefinitions, masterReport.getReportEnvironment());
        this.columnNames = collectColumnNames(reportData, parameterRow, expressions);
        if (reportData instanceof CloseableTableModel)
        {
          final CloseableTableModel ctm = (CloseableTableModel) reportData;
View Full Code Here

Examples of org.python.util.PythonInterpreter.compile()

      throw new UserException(
          "The start date can't be after the finish date");
    }
    PythonInterpreter interp = new PythonInterpreter();
    try {
      interp.compile(script);
    } catch (Throwable e) {
      throw new UserException(HttpException.getStackTraceString(e));
    }
    setScript(script);
  }
View Full Code Here

Examples of org.renjin.compiler.ir.ProgramCompiler.compile()

   
    SEXP programExpression = RParser.parseSource(new InputStreamReader(getClass()
        .getResourceAsStream("/meanVarOnline.R")));
   
    ProgramCompiler compiler = new ProgramCompiler();
    compiler.compile(programExpression);
   
   
//    long start = new Date().getTime();
//   
//    program.evaluate();
View Full Code Here

Examples of org.renjin.gcc.GimpleCompiler.compile()

      compiler.getMethodTable().addReferenceClass(RenjinCApi.class);
      compiler.getMethodTable().addReferenceClass(Sort.class);

      compiler.provideType("SEXP_T", new SimpleRecordType(new RealJimpleType(GnuSEXP.class)));

      compiler.compile(units);
    }
  }

  private boolean checkUpToDate() {
    if(sourcesLastModified() < classLastModified()) {
View Full Code Here

Examples of org.renjin.gnur.GnurSourcesCompiler.compile()

    compiler.setOutputDirectory(outputDirectory);
    compiler.setJimpleDirectory(jimpleDirectory);
    compiler.setGimpleDirectory(gimpleDirectory);
   
    try {
      compiler.compile();
    } catch (Exception e) {
      if(ignoreFailure) {
        System.err.println("Compilation of GNU R sources failed");
        e.printStackTrace(System.err);
      } else {
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.