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

Examples of ch.uzh.ifi.seal.changedistiller.ast.java.CommentCleaner


    @BeforeClass
    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");
        JavaMethodBodyConverter bodyT = sInjector.getInstance(JavaMethodBodyConverter.class);
        bodyT.initialize(sRoot, method, sComments, sCompilation.getScanner());
View Full Code Here


    @BeforeClass
    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();
    }
View Full Code Here

TOP

Related Classes of ch.uzh.ifi.seal.changedistiller.ast.java.CommentCleaner

Copyright © 2018 www.massapicom. 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.