Examples of Printer


Examples of com.sample.Printer

    repositoryService.createDeployment().addInputStream("expression.bpmn20.xml",
        new FileInputStream(filename)).deploy();
    RuntimeService runtimeService = activitiRule.getRuntimeService();
    Map<String, Object> variableMap = new HashMap<String, Object>();
    variableMap.put("name", "Activiti");
    variableMap.put("printer", new Printer());
    ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("expression", variableMap);
    assertNotNull(processInstance.getId());
    System.out.println("id " + processInstance.getId() + " "
        + processInstance.getProcessDefinitionId());
  }
View Full Code Here

Examples of com.sun.grid.cull.Printer

         File f = super.getFileForClass(javaClassName);

         if( !f.exists() || f.lastModified() < templateFile.lastModified() ) {


            Printer p  = new Printer(f);

            template.print(p, params );
            p.flush();
            p.close();
         }
      } catch(IntrospectionException itse) {
         IOException e = new IOException("Introspection error: " + itse.getMessage());
         e.initCause(itse);
         throw e;
View Full Code Here

Examples of com.sun.grid.cull.Printer

        Template template = fac.createTemplate(templateFile);

        try {
            if (printer == null) {
                if (!outputFile.exists() || outputFile.lastModified() < templateFile.lastModified() || (prologFile != null && outputFile.lastModified() < prologFile.lastModified()) || (epilogFile != null && outputFile.lastModified() < epilogFile.lastModified())) {
                    printer = new Printer(outputFile);
                    if (prologFile != null) {
                        logger.fine("write prolog " + prologFile);
                        printer.printFile(prologFile);
                    }
                }
View Full Code Here

Examples of com.sun.grid.cull.Printer

         logger.info("create template class " + className + " from file " + f);
        
         // Template class doest not exists or is older the the template file
         // Recompile it
        
         Printer p = new Printer(srcFile);

         writeHeader(p, null, className );
         writeTemplate(p, f);
         writeFooter(p, className );

         p.flush();
         p.close();

         String args [] = {        
            "-d", tmpClassesDir.getAbsolutePath(),
            "-classpath", classpath,
            "-source", javaSourceVersion,
View Full Code Here

Examples of com.sun.grid.cull.Printer

        }
        try {
            TemplateFactory fac = new TemplateFactory(buildDir, classpath.toString(), source, target);
            Template t = fac.createTemplate(template);

            Printer p = null;

            if (getOutputFile() == null) {
                p = new Printer();
            } else {
                p = new Printer(getOutputFile());
            }




            Map<String, String> paramMap = new HashMap<String, String>();
            for (Param param : params) {
                paramMap.put(param.getName(), param.getValue());
            }
            t.print(p, paramMap);
            p.flush();
        } catch (IOException ioe) {
            throw new BuildException("I/O Error: " + ioe.getMessage(), ioe);
        }
    }
View Full Code Here

Examples of com.sun.hotspot.igv.data.serialization.Printer

                dir = dir.getParentFile();
            }
            Settings.get().put(Settings.DIRECTORY, dir.getAbsolutePath());
            try {
                Writer writer = new OutputStreamWriter(new FileOutputStream(file));
                Printer p = new Printer();
                p.export(writer, doc);
                writer.close();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
View Full Code Here

Examples of com.sun.jersey.samples.jmaki.beans.Printer

     * Test checks GET on resource "printers/ids" based on id.
     */
    @Test
    public void doTestGetPrinterBasedOnId() {
        WebResource webResource = resource();
        Printer printer = webResource.path("printers").path("ids").path("P01").accept(MediaType.APPLICATION_JSON).get(Printer.class);
        Assert.assertEquals("Method: doTestGetPrinterBasedOnId \nMessage: ID of the retrieved printer " +
                "doesn't match the search value", "P01", printer.id);
    }
View Full Code Here

Examples of com.sun.tools.javac.code.Printer

        } else
            return;

        final JavacMessages messages = JavacMessages.instance(docenv().context);
        Locale locale = Locale.getDefault();
        Printer printer = new Printer() {
            int count;
            @Override
            protected String localize(Locale locale, String key, Object... args) {
                return messages.getLocalizedString(locale, key, args);
            }
            @Override
            protected String capturedVarId(CapturedType t, Locale locale) {
                return "CAP#" + (++count);
            }
        };

        String s = text.replaceAll("\\s+", " ")// normalize white space
        int sp = s.indexOf(" ");
        int lparen = s.indexOf("(");
        int rparen = s.indexOf(")");
        String seetext = (sp == -1) ? s
                : (lparen == -1 || sp < lparen) ? s.substring(0, sp)
                : s.substring(0, rparen + 1);

        File file = new File(holder.position().file().getAbsoluteFile().toURI().normalize());

        StringBuilder sb = new StringBuilder();
        sb.append("+++ ").append(file).append(": ")
                .append(name()).append(" ").append(seetext).append(": ");
        sb.append(sym.getKind()).append(" ");
        if (sym.kind == Kinds.MTH || sym.kind == Kinds.VAR)
            sb.append(printer.visit(sym.owner, locale)).append(".");
        sb.append(printer.visit(sym, locale));

        System.err.println(sb);
    }
View Full Code Here

Examples of control.Printer

       alumno2.setEp(20);
       alumno2.setPc(20);
      
       AlumnoTRA alumno3  = new AlumnoTRA(16);             
       
       Printer impresora = new Printer();
       impresora.imprimir(alumno1);
       impresora.imprimir(alumno2);
       impresora.imprimir(alumno3);
      
       Carro miCarro =  new Carro("Uno Mille", 20993);
       impresora.imprimir(miCarro);
    }
View Full Code Here

Examples of jdk.internal.org.objectweb.asm.util.Printer

        public MethodVisitor visitMethod(final int access, final String name, final String desc, final String signature, final String[] exceptions) {
            if (!method.equals(name)) {
                return null;
            }

            Printer p = this.p.visitMethod(access, name, desc, signature, exceptions);
            MethodVisitor mv = cv == null ? null : cv.visitMethod(access, name, desc, signature, exceptions);
            return new TraceMethodVisitor(mv, p);
        }
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.