Examples of ICompiler


Examples of com.dtrules.session.ICompiler

            Class  compilerClass = ruleSet.getDefaultCompiler();
            if(compilerClass == null){
              throw new RulesException("undefined", "Excel2XML", "No default compiler has been found." +
                  "  We cannot convert and compile the XML without one");
            }
            ICompiler defaultCompiler = (ICompiler) compilerClass.newInstance();
            defaultCompiler.setSession(session);

            ICompiler      compiler     = defaultCompiler;
                           dtcompiler   = new DTCompiler(compiler);
           
            InputStream    inDTStream   = new FileInputStream(ruleSet.getFilepath()+"/"+UDTFilename);
            OutputStream   outDTStream  = new FileOutputStream(ruleSet.getFilepath()+"/"+ruleSet.getDT_XMLName());
           
View Full Code Here

Examples of com.dtrules.session.ICompiler

            Class<ICompiler>  compilerClass = ruleSet.getDefaultCompiler();
            if(compilerClass == null){
              throw new RulesException("undefined", "Excel2XML", "No default compiler has been found." +
                  "  We cannot convert and compile the XML without one");
            }
            ICompiler defaultCompiler = (ICompiler) compilerClass.newInstance();
            defaultCompiler.setSession(session);

            ICompiler      compiler     = defaultCompiler;
                           dtcompiler   = new DTCompiler(compiler);
           
            InputStream    inDTStream   = new FileInputStream(ruleSet.getFilepath()+"/"+UDTFilename);
            OutputStream   outDTStream  = new FileOutputStream(ruleSet.getFilepath()+"/"+ruleSet.getDT_XMLName());
           
View Full Code Here

Examples of com.dtrules.session.ICompiler

       
        try {
            IRSession session    = new RSession(ruleSet);
            Class  compilerClass = ruleSet.getDefaultCompiler();
           
            ICompiler defaultCompiler = (ICompiler) compilerClass.newInstance();
            defaultCompiler.setSession(session);

            ICompiler      compiler     = defaultCompiler;
                           dtcompiler   = new DTCompiler(compiler);
           
            InputStream    inDTStream   = new FileInputStream(ruleSet.getFilepath()+"/"+UDTFilename);
            OutputStream   outDTStream  = new FileOutputStream(ruleSet.getFilepath()+"/"+ruleSet.getDT_XMLName());
           
View Full Code Here

Examples of com.dtrules.session.ICompiler

       
        try {
            IRSession session    = new RSession(ruleSet);
            Class  compilerClass = ruleSet.getDefaultCompiler();
           
            ICompiler defaultCompiler = (ICompiler) compilerClass.newInstance();
            defaultCompiler.setSession(session);

            ICompiler      compiler     = defaultCompiler;
                           dtcompiler   = new DTCompiler(compiler);
           
            InputStream    inDTStream   = new FileInputStream(ruleSet.getFilepath()+"/"+UDTFilename);
            OutputStream   outDTStream  = new FileOutputStream(ruleSet.getFilepath()+"/"+ruleSet.getDT_XMLName());
           
View Full Code Here

Examples of org.adoptopenjdk.jitwatch.sandbox.compiler.ICompiler

    this.sandboxStage = sandboxStage;
  }

  private ICompiler getCompiler(String language, ISandboxLogListener logger)
  {
    ICompiler compiler = null;

    String compilerPath = logParser.getConfig().getVMLanguageCompilerPath(language);

    if (compilerPath != null && !S_EMPTY.equals(compilerPath))
    {
View Full Code Here

Examples of org.adoptopenjdk.jitwatch.sandbox.compiler.ICompiler

  public void runSandbox(String language, List<File> compileList, File fileToRun) throws Exception
  {
    logListener.log("Running Sandbox");
    logListener.log("Language is " + language);

    ICompiler compiler = getCompiler(language, logListener);

    if (compiler == null)
    {
      logListener.log(language + " compiler path not set. Please click Configure Sandbox and set up the path.");
      return;
    }

    IRuntime runtime = getRuntime(language, logListener);

    if (runtime == null)
    {
      logListener.log(language + " runtime path not set. Please click Configure Sandbox and set up the path.");
      return;
    }

    logListener.log("Compiling: " + StringUtil.listToString(compileList));

    boolean compiledOK = compiler.compile(compileList, logParser.getConfig().getClassLocations(), SANDBOX_CLASS_DIR.toFile(),
        logListener);

    logListener.log("Compilation success: " + compiledOK);

    if (compiledOK)
    {
      String fqClassNameToRun = runtime.getClassToExecute(fileToRun);

      boolean executionSuccess = executeClass(fqClassNameToRun, runtime, logParser.getConfig().isSandboxIntelMode());

      logListener.log("Execution success: " + executionSuccess);

      if (executionSuccess)
      {
        runJITWatch();

        if (!logParser.hasParseError())
        {
          String fqClassNameForTriView = runtime.getClassForTriView(fileToRun);

          showTriView(language, fqClassNameForTriView);
        }
      }
      else
      {
        sandboxStage.showError(runtime.getErrorStream());
      }
    }
    else
    {
      sandboxStage.showError(compiler.getErrorStream());
    }
  }
View Full Code Here

Examples of unbbayes.prs.mebn.compiler.ICompiler

      });
     
      btnCompile.addActionListener(new ActionListener(){

        public void actionPerformed(ActionEvent e) {
          ICompiler compiler = getResidentNode().getCompiler();
         
          try {
            compiler.init(cptTextPane.getTableTxt());
            compiler.parse();
            JOptionPane.showMessageDialog(mebnController.getCPTEditionFrame(residentNode),
                resource.getString("CptCompileOK"), resource.getString("sucess"),
                JOptionPane.INFORMATION_MESSAGE);
          } catch (MEBNException e1) {
            JOptionPane.showMessageDialog(mebnController.getCPTDialog(residentNode),
                e1.getMessage() + " > " + compiler.getIndex() + " <", resource.getString("error"),
                JOptionPane.ERROR_MESSAGE);
          } catch (Exception exc) {
            // this is an unknown exception...
            exc.printStackTrace();
            JOptionPane.showMessageDialog(mebnController.getCPTDialog(residentNode),
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.