下面列出了怎么用org.eclipse.jdt.core.dom.LineComment的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
public boolean visit(final LineComment node) {
if ((this.javaSources != null)) {
this.appendToBuffer(this.commentContent(node));
}
this.appendLineWrapToBuffer();
return false;
}
public boolean visit(final LineComment commentNode) {
return false;
}
@Override
public boolean visit(LineComment node) {
commentMap.put(routeCU.getLineNumber(node.getStartPosition()), getCommentContent(node));
return true;
}
@Override
public boolean visit(LineComment node) {
if (node.subtreeMatch(fMatcher, fNodeToMatch))
return matches(node);
return super.visit(node);
}
@Override
public void endVisit(LineComment node) {
endVisitNode(node);
}
@Override
public boolean visit(LineComment node) {
return visitNode(node);
}