com.sun.mirror.declaration.Declaration.getDocComment()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中com.sun.mirror.declaration.Declaration.getDocComment()方法的一些代码示例,展示了Declaration.getDocComment()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Declaration.getDocComment()方法的具体详情如下:
包路径:com.sun.mirror.declaration.Declaration
类名称:Declaration
方法名:getDocComment

Declaration.getDocComment介绍

暂无

代码示例

代码示例来源:origin: net.sf.apt-jelly/apt-jelly-core

public String getDocComment() {
 return delegate.getDocComment();
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * The doc comment associated with this web param.
 *
 * @return The doc comment associated with this web param.
 */
public String getElementDocs() {
 return getDelegate().getDocComment();
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * The doc comment associated with this web param.
 *
 * @return The doc comment associated with this web param.
 */
public String getElementDocs() {
 return getDelegate().getDocComment();
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * There is only part documentation if this web parameter is not BARE.
 *
 * @return null if BARE, the documantation otherwise.
 */
public String getPartDocs() {
 if (isBare()) {
  return null;
 }
 return getDelegate().getDocComment();
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * There is only message documentation if this web parameter is BARE.
 *
 * @return The documentation if BARE, null otherwise.
 */
public String getMessageDocs() {
 if (isBare()) {
  return getDelegate().getDocComment();
 }
 return null;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * There is only part documentation if this web parameter is not BARE.
 *
 * @return null if BARE, the documantation otherwise.
 */
public String getPartDocs() {
 if (isBare()) {
  return null;
 }
 return getDelegate().getDocComment();
}

代码示例来源:origin: net.sf.apt-jelly/apt-jelly-core

public DecoratedDeclaration(Declaration delegate) {
 this.delegate = delegate;
 String docComment = this.delegate.getDocComment();
 JavaDocTagHandler tagHandler = JavaDocTagHandlerFactory.getTagHandler();
 this.javaDoc = constructJavaDoc(docComment, tagHandler);
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * There is only message documentation if this web parameter is BARE.
 *
 * @return The documentation if BARE, null otherwise.
 */
public String getMessageDocs() {
 if (isBare()) {
  return getDelegate().getDocComment();
 }
 return null;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

private void gatherDocumentationGroupFacets(Declaration decl, Set<Facet> facets) {
 if (decl != null) {
  DocumentationGroup documentationGroup = decl.getAnnotation(DocumentationGroup.class);
  if (documentationGroup != null) {
   for (String name : documentationGroup.value()) {
    facets.add(new Facet(DocumentationGroup.class.getName(), name, new JavaDoc(decl.getDocComment()).toString()));
   }
  }
  else if (decl instanceof TypeDeclaration) {
   PackageDeclaration pkg = ((TypeDeclaration)decl).getPackage();
   if (pkg != null) {
    documentationGroup = pkg.getAnnotation(DocumentationGroup.class);
    if (documentationGroup != null) {
     for (String name : documentationGroup.value()) {
      facets.add(new Facet(DocumentationGroup.class.getName(), name, new JavaDoc(pkg.getDocComment()).toString()));
     }
    }
   }
  }
 }
}

相关文章