本文整理了Java中org.eclipse.jdt.internal.compiler.ast.Javadoc.toString()
方法的一些代码示例,展示了Javadoc.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Javadoc.toString()
方法的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.ast.Javadoc
类名称:Javadoc
方法名:toString
暂无
代码示例来源:origin: com.android.tools.external.lombok/lombok-ast
@Override public void visitJavadoc(Javadoc node) {
if (node == null) {
set(node, (Node)null);
return;
}
lombok.ast.Comment comment = new lombok.ast.Comment();
comment.astBlockComment(true);
if (rawInput != null) {
comment.astContent(rawInput.substring(node.sourceStart + 2, node.sourceEnd - 1));
} else {
String reconstructed = node.toString();
comment.astContent(reconstructed.substring(2, reconstructed.length() - 2)); //+2 and -2 := Strip /* and */
}
set(node, setPosition(node, comment));
}
代码示例来源:origin: me.tatarka.retrolambda.projectlombok/lombok.ast
@Override public void visitJavadoc(Javadoc node) {
if (node == null) {
set(node, (Node)null);
return;
}
lombok.ast.Comment comment = new lombok.ast.Comment();
comment.astBlockComment(true);
if (rawInput != null) {
comment.astContent(rawInput.substring(node.sourceStart + 2, node.sourceEnd - 1));
} else {
String reconstructed = node.toString();
comment.astContent(reconstructed.substring(2, reconstructed.length() - 2)); //+2 and -2 := Strip /* and */
}
set(node, setPosition(node, comment));
}
代码示例来源:origin: org.projectlombok/lombok.ast
@Override public void visitJavadoc(Javadoc node) {
if (node == null) {
set(node, (Node)null);
return;
}
lombok.ast.Comment comment = new lombok.ast.Comment();
comment.astBlockComment(true);
if (rawInput != null) {
comment.astContent(rawInput.substring(node.sourceStart + 2, node.sourceEnd - 1));
} else {
String reconstructed = node.toString();
comment.astContent(reconstructed.substring(2, reconstructed.length() - 2)); //+2 and -2 := Strip /* and */
}
set(node, setPosition(node, comment));
}
内容来源于网络,如有侵权,请联系作者删除!