Package ch.uzh.ifi.seal.changedistiller.ast.java

Examples of ch.uzh.ifi.seal.changedistiller.ast.java.CommentCleaner.process()


    public static void prepareCompilationUnit() throws Exception {
        sCompilation = CompilationUtils.compileFile("src_comments/ClassWithCommentsToAssociate.java");
        List<Comment> comments = CompilationUtils.extractComments(sCompilation);
        CommentCleaner visitor = new CommentCleaner(sCompilation.getSource());
        for (Comment comment : comments) {
            visitor.process(comment);
        }
        sComments = visitor.getComments();
        sRoot = new Node(JavaEntityType.METHOD, "foo");
        sRoot.setEntity(new SourceCodeEntity("foo", JavaEntityType.METHOD, new SourceRange()));
        AbstractMethodDeclaration method = CompilationUtils.findMethod(sCompilation.getCompilationUnit(), "foo");
View Full Code Here


    public static void prepareCompilationUnit() throws Exception {
        sCompilationUnit = CompilationUtils.compileFile("src_comments/ClassWithConsecutiveComments.java");
        List<Comment> comments = CompilationUtils.extractComments(sCompilationUnit);
        CommentCleaner visitor = new CommentCleaner(sCompilationUnit.getSource());
        for (Comment comment : comments) {
            visitor.process(comment);
        }
        sComments = visitor.getComments();
    }

    @Test
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.