Example usage for org.eclipse.jdt.core.dom Javadoc getComment

List of usage examples for org.eclipse.jdt.core.dom Javadoc getComment

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom Javadoc getComment.

Prototype

public String getComment() 

Source Link

Document

Returns the doc comment string, including the starting and ending comment delimiters, and any embedded line breaks.

Usage

From source file:javadoctest.internal.DocTestExtractor.java

License:Open Source License

private List<ExtractedDocTest> extractExamples(Collection<String> imports, String pkg, String rootClass,
        String source, BodyDeclaration node) {
    Javadoc javadoc = node.getJavadoc();
    if (javadoc == null) {
        return Collections.emptyList();
    }//w ww.  j  a  v  a  2 s  .c  o  m

    return extractCodeBlocks(source, imports, pkg, rootClass, extractJavadoc(javadoc.getComment()));
}