org.eclipse.jdt.internal.compiler.ast.Javadoc.toString()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(136)

本文整理了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

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));
}

相关文章