Examples of compile()


Examples of org.apache.xalan.xsltc.compiler.XSLTC.compile()

      if (useStdIn) {
    if (!classNameSet) {
        System.err.println(new ErrorMsg(ErrorMsg.COMPILE_STDIN_ERR));
        if (_allowExit) System.exit(-1);
    }
    compileOK = xsltc.compile(System.in, xsltc.getClassName());
      }
      else {
    // Generate a vector containg URLs for all stylesheets specified
    final String[] stylesheetNames = getopt.getCmdArgs();
    final Vector   stylesheetVector = new Vector();
View Full Code Here

Examples of org.apache.xpath.compiler.Compiler.compile()

      parser.initMatchPattern(compiler, exprString, prefixResolver);
    else
      throw new RuntimeException(XSLMessages.createXPATHMessage(XPATHErrorResources.ER_CANNOT_DEAL_XPATH_TYPE, new Object[]{Integer.toString(type)})); //"Can not deal with XPath type: " + type);

    // System.out.println("----------------");
    Expression expr = compiler.compile(0);

    // System.out.println("expr: "+expr);
    this.setExpression(expr);
   
    if((null != locator) && locator instanceof ExpressionNode)
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile()

  }

  // Compile compilation unit
  CompilerRequestor compilerRequestor = new CompilerRequestor();
  Compiler compiler = getCompiler(compilerRequestor);
  compiler.compile(new ICompilationUnit[] {new ICompilationUnit() {
    public char[] getFileName() {
       // Name of class is name of CU
      return CharOperation.concat(Evaluator.this.getClassName(), Util.defaultJavaExtension().toCharArray());
    }
    public char[] getContents() {
View Full Code Here

Examples of org.cafesip.jiplet.mapping.MappingCompiler.compile()

        compiler.setCompiledList(criteria);
        compiler.setMappedObject(jiplet);
        compiler.setMapping(mapping);
        synchronized (criteria)
        {
            String ret = compiler.compile();
            if (ret == null)
            {
                throw new JipletException("Failed to compile mapping");
            }
View Full Code Here

Examples of org.codehaus.groovy.control.CompilationUnit.compile()

   
    ClassCollector collector = new ClassCollector();
    unit.setClassgenCallback(collector);
    try
    {
      unit.compile(Phases.CLASS_GENERATION);
    }
    catch (CompilationFailedException e)
    {
      throw new JRException(
        "Errors were encountered when compiling report expressions class file:\n"
View Full Code Here

Examples of org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.compile()

                };
            }
        });

        try {
            unit.compile();
        } catch (org.codehaus.groovy.control.CompilationFailedException e) {
            System.err.println(e.getMessage());
            throw new CompilationFailedException();
        }
View Full Code Here

Examples of org.codehaus.groovy.tools.javac.JavaStubCompilationUnit.compile()

        }

        if (count > 0) {
            log.info("Generating " + count + " Java stub" + (count > 1 ? "s" : "") + " to " + destdir);

            cu.compile();

            log.info("Generated " + cu.getStubCount() + " Java stub(s)");
        }
        else {
            log.info("No sources found for stub generation");
View Full Code Here

Examples of org.codehaus.janino.Compiler.compile()

        for (int i = 0; i < pSourceNames.length; i++) {
            final byte[] source = pResourceReader.getBytes(pSourceNames[i]);
            resources[i] = new JciResource(pSourceNames[i], source);
        }
        try {
            compiler.compile(resources);
        } catch ( ScanException e ) {
            problems.add(new JaninoCompilationProblem(e));
        } catch ( ParseException e ) {
            problems.add(new JaninoCompilationProblem(e));
        } catch ( IOException e ) {
View Full Code Here

Examples of org.codehaus.plexus.compiler.Compiler.compile()

        List<CompilerError> messages;

        try
        {
            messages = compiler.compile( compilerConfiguration );
        }
        catch ( Exception e )
        {
            // TODO: don't catch Exception
            throw new MojoExecutionException( "Fatal error compiling", e );
View Full Code Here

Examples of org.codehaus.plexus.compiler.javac.JavacCompiler.compile()

        config.setClasspathEntries(Arrays.asList(projectClasspath));

        try {
            JavacCompiler javac = new JavacCompiler();
            getLog().debug("Compiling event interface using: " + Arrays.toString(javac.createCommandLine(config)));
            List<CompilerError> messages = javac.compile(config);
            checkForCompilerErrors(messages, classToCompile);
        } catch (CompilerException e) {
            throw new MojoExecutionException("Cannot compile event interface: " + classToCompile, e);
        }
    }
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.