Examples of addComment()


Examples of net.percederberg.grammatica.code.java.JavaMethod.addComment()

        method = new JavaMethod(JavaMethod.PROTECTED,
                                "newTokenizer",
                                "Reader in",
                                "Tokenizer");
        method.addThrows("ParserCreationException");
        method.addComment(new JavaComment(FACTORY_COMMENT));
        method.addCode("return new " + tokenizer.getClassName() + "(in);");
        cls.addMethod(method);

        // Add init method
        cls.addMethod(initMethod);
View Full Code Here

Examples of net.percederberg.grammatica.code.java.JavaVariable.addComment()

                        JavaVariable.FINAL;
            var = new JavaVariable(modifiers,
                                   "int",
                                   constant,
                                   String.valueOf(constantId + 3000));
            var.addComment(new JavaComment(PRODUCTION_COMMENT));
            cls.addVariable(var);
            constantNames.put(new Integer(pattern.getId()), constant);
            constantId++;
        }
    }
View Full Code Here

Examples of net.percederberg.grammatica.code.visualbasic.VisualBasicConstructor.addComment()

        cls.addComment(new VisualBasicComment(TYPE_COMMENT));

        // Add constructor
        constr = new VisualBasicConstructor("ByVal input As TextReader");
        cls.addConstructor(constr);
        constr.addComment(new VisualBasicComment(CONSTRUCTOR_COMMENT));
        constr.addCode("MyBase.New(input, " +
                       getBoolean(!gen.getGrammar().getCaseSensitive()) +
                       ")");
        constr.addCode("CreatePatterns()");
View Full Code Here

Examples of net.percederberg.grammatica.code.visualbasic.VisualBasicConstructor.addComment()

        enm.addComment(new VisualBasicComment(ENUM_COMMENT));

        // Add constructor
        constr = new VisualBasicConstructor("ByVal input As TextReader");
        cls.addConstructor(constr);
        constr.addComment(new VisualBasicComment(CONSTRUCTOR1_COMMENT));
        constr.addCode("MyBase.New(input)");
        constr.addCode("CreatePatterns()");

        // Add constructor
        constr = new VisualBasicConstructor("ByVal input As TextReader, " +
View Full Code Here

Examples of net.percederberg.grammatica.code.visualbasic.VisualBasicConstructor.addComment()

        // Add constructor
        constr = new VisualBasicConstructor("ByVal input As TextReader, " +
                                            "ByVal analyzer As " +
                                            analyzer.getClassName());
        cls.addConstructor(constr);
        constr.addComment(new VisualBasicComment(CONSTRUCTOR2_COMMENT));
        constr.addCode("MyBase.New(input, analyzer)");
        constr.addCode("CreatePatterns()");

        // Add tokenizer factory method
        method = new VisualBasicMethod(VisualBasicMethod.PROTECTED + VisualBasicMethod.OVERRIDES,
View Full Code Here

Examples of net.percederberg.grammatica.code.visualbasic.VisualBasicMethod.addComment()

        // Add tokenizer factory method
        method = new VisualBasicMethod(VisualBasicMethod.PROTECTED + VisualBasicMethod.OVERRIDES,
                                      "NewTokenizer",
                                      "ByVal input As TextReader",
                                      "Tokenizer");
        method.addComment(new VisualBasicComment(FACTORY_COMMENT));
        method.addCode("Return New " + tokenizer.getClassName() + "(input);");
        cls.addMethod(method);

        // Add init method
        cls.addMethod(initMethod);
View Full Code Here

Examples of net.percederberg.grammatica.code.visualbasic.VisualBasicMethod.addComment()

        m = new VisualBasicMethod(VisualBasicMethod.PUBLIC +
                                  VisualBasicMethod.OVERRIDABLE,
                                  "Enter" + name,
                                  "ByVal node As " + type,
                                  "");
        m.addComment(new VisualBasicComment(ENTER_COMMENT));
        cls.addMethod(m);
    }

    /**
     * Adds an exit node method to this file.
View Full Code Here

Examples of net.sf.samtools.SAMFileHeader.addComment()

      mergeComment.append(" ").append(source.path);
    }

    resolveCollisions(list);
    SAMFileHeader header = mergeHeaders(list);
    header.addComment(mergeComment.toString());

    SAMFileWriter writer = null;
    if (params.outFile != null)
      if (!params.samFormat)
        writer = new SAMFileWriterFactory().makeBAMWriter(header, true,
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogEntry.addComment()

    blogEntry.setDate(new Date(100000));
    blogEntry.setPublished(false);
    service.putBlogEntry(blogEntry);

    Comment comment = blogEntry.createComment("title", "body", "author", "email", "website", "avatar", "127.0.0.1");
    blogEntry.addComment(comment);
    service.putBlogEntry(blogEntry);

    String commentId = comment.getGuid();
    assertTrue(blog.getResponseIndex().getApprovedResponses().contains(commentId));
View Full Code Here

Examples of org.activiti.engine.TaskService.addComment()

        // 设置变量
        Map<String, Object> variables = new HashMap<String, Object>();
        variables.put("skip", true);
        CompleteTaskCmd command = new CompleteTaskCmd(taskEntity.getId(), variables, true);

        taskService.addComment(taskEntity.getId(), taskEntity.getProcessInstanceId(), "自动跳过");

        // 执行命令,直接完成当前任务
//        System.out.println("准备跳过任务:" + taskEntity.getName() + "-->" + taskDefinitionKey);
        managementService.executeCommand(command);
        System.out.println("已跳过任务:" + taskEntity.getName() + "-->" + taskDefinitionKey);
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.