com.webcohesion.enunciate.javac.javadoc.JavaDoc.get()方法的使用及代码示例

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

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

JavaDoc.get介绍

暂无

代码示例

代码示例来源:origin: stoicflame/enunciate

@Override
 public String getSince() {
  JavaDoc.JavaDocTagList sinceTags = getJavaDoc().get("since");
  return sinceTags == null ? null : sinceTags.toString();
 }
}

代码示例来源:origin: stoicflame/enunciate

public ValueImpl(String value, JavaDoc javaDoc, Set<String> styles, Set<Facet> facets) {
 this.value = value;
 this.description = javaDoc.toString();
 this.styles = styles;
 this.facets = facets;
 JavaDoc.JavaDocTagList sinceTags = javaDoc.get("since");
 this.since = sinceTags != null ? sinceTags.toString() : null;
}

代码示例来源:origin: stoicflame/enunciate

public ValueImpl(String value, JavaDoc javaDoc, Set<String> styles, Set<Facet> facets) {
 this.value = value;
 this.description = javaDoc.toString();
 this.styles = styles;
 this.facets = facets;
 JavaDoc.JavaDocTagList sinceTags = javaDoc.get("since");
 this.since = sinceTags != null ? sinceTags.toString() : null;
}

代码示例来源:origin: stoicflame/enunciate

@Override
 public String getSince() {
  JavaDoc.JavaDocTagList sinceTags = getJavaDoc().get("since");
  return sinceTags == null ? null : sinceTags.toString();
 }
}

代码示例来源:origin: stoicflame/enunciate

@Override
public List<String> getSeeAlso() {
 JavaDoc.JavaDocTagList tags = this.typeDefinition.getJavaDoc(this.registrationContext.getTagHandler()).get("see");
 if (tags == null) {
  tags = ((DecoratedElement) this.typeDefinition.getPackage()).getJavaDoc(this.registrationContext.getTagHandler()).get("see");
 }
 return tags;
}

代码示例来源:origin: stoicflame/enunciate

@Override
 public String get(JavaDocTagHandler tagHandler) {
  String value = this.values.get(tagHandler.getTypeId());
  if (value == null) {
   JavaDoc.JavaDocTagList tags = this.executableElement.getJavaDoc(tagHandler).get("return");
   value = tags == null ? "" : tags.toString();
   this.values.put(tagHandler.getTypeId(), value);
  }

  return value;
 }
}

代码示例来源:origin: stoicflame/enunciate

private JavaDoc.JavaDocTagList getDocumentationExampleTags(Member member) {
 JavaDoc.JavaDocTagList tags = member.getJavaDoc().get("documentationExample");
 if (tags == null || tags.isEmpty()) {
  DecoratedTypeMirror accessorType = member.getBareAccessorType();
  if (accessorType instanceof DecoratedDeclaredType) {
   Element element = ((DecoratedDeclaredType) accessorType).asElement();
   tags = element instanceof DecoratedElement ? ((DecoratedElement) element).getJavaDoc().get("documentationExample") : null;
  }
 }
 return tags;
}

代码示例来源:origin: stoicflame/enunciate

private JavaDoc.JavaDocTagList getDocumentationExampleTags(Member member) {
 JavaDoc.JavaDocTagList tags = member.getJavaDoc().get("documentationExample");
 if (tags == null || tags.isEmpty()) {
  DecoratedTypeMirror accessorType = member.getBareAccessorType();
  if (accessorType instanceof DecoratedDeclaredType) {
   Element element = ((DecoratedDeclaredType) accessorType).asElement();
   tags = element instanceof DecoratedElement ? ((DecoratedElement) element).getJavaDoc().get("documentationExample") : null;
  }
 }
 return tags;
}

代码示例来源:origin: stoicflame/enunciate

private JavaDoc.JavaDocTagList getDocumentationExampleTags(Accessor member) {
 JavaDoc.JavaDocTagList tags = member.getJavaDoc().get("documentationExample");
 if (tags == null || tags.isEmpty()) {
  DecoratedTypeMirror accessorType = member.getBareAccessorType();
  if (accessorType instanceof DecoratedDeclaredType) {
   javax.lang.model.element.Element element = ((DecoratedDeclaredType) accessorType).asElement();
   tags = element instanceof DecoratedElement ? ((DecoratedElement) element).getJavaDoc().get("documentationExample") : null;
  }
 }
 return tags;
}

代码示例来源:origin: stoicflame/enunciate

@Override
public List<String> getSeeAlso() {
 JavaDoc.JavaDocTagList tags = this.typeDefinition.getJavaDoc(this.registrationContext.getTagHandler()).get("see");
 if (tags == null) {
  tags = ((DecoratedElement) this.typeDefinition.getPackage()).getJavaDoc(this.registrationContext.getTagHandler()).get("see");
 }
 return tags;
}

代码示例来源:origin: stoicflame/enunciate

@Override
public String getSince() {
 JavaDoc.JavaDocTagList tags = this.typeDefinition.getJavaDoc(this.registrationContext.getTagHandler()).get("since");
 if (tags == null) {
  tags = ((DecoratedElement) this.typeDefinition.getPackage()).getJavaDoc(this.registrationContext.getTagHandler()).get("since");
 }
 return tags == null ? null : tags.toString();
}

代码示例来源:origin: stoicflame/enunciate

@Override
public List<String> getSeeAlso() {
 JavaDoc.JavaDocTagList tags = this.resourceMethod.getJavaDoc(this.registrationContext.getTagHandler()).get("see");
 if (tags == null) {
  tags = this.resourceMethod.getParent().getJavaDoc(this.registrationContext.getTagHandler()).get("see");
 }
 if (tags == null) {
  tags = ((DecoratedElement) this.resourceMethod.getParent().getPackage()).getJavaDoc(this.registrationContext.getTagHandler()).get("see");
 }
 return tags;
}

代码示例来源:origin: stoicflame/enunciate

@Override
public String getVersion() {
 JavaDoc.JavaDocTagList tags = this.webMethod.getJavaDoc(this.registrationContext.getTagHandler()).get("version");
 return tags == null ? null : tags.toString();
}

代码示例来源:origin: stoicflame/enunciate

@Override
public String getVersion() {
 JavaDoc.JavaDocTagList tags = this.requestMapping.getJavaDoc(this.registrationContext.getTagHandler()).get("version");
 return tags == null ? null : tags.toString();
}

代码示例来源:origin: stoicflame/enunciate

@Override
public String getSince() {
 JavaDoc.JavaDocTagList tags = this.webMethod.getJavaDoc(this.registrationContext.getTagHandler()).get("since");
 return tags == null ? null : tags.toString();
}

代码示例来源:origin: stoicflame/enunciate

@Override
public String getSince() {
 JavaDoc.JavaDocTagList tags = this.requestMapping.getJavaDoc(this.registrationContext.getTagHandler()).get("since");
 return tags == null ? null : tags.toString();
}

代码示例来源:origin: stoicflame/enunciate

@Override
public String getSince() {
 JavaDoc.JavaDocTagList tags = this.typeDefinition.getJavaDoc(this.registrationContext.getTagHandler()).get("since");
 if (tags == null) {
  tags = this.typeDefinition.getPackage().getJavaDoc(this.registrationContext.getTagHandler()).get("since");
 }
 return tags == null ? null : tags.toString();
}

代码示例来源:origin: stoicflame/enunciate

@Override
public String getSince() {
 JavaDoc.JavaDocTagList tags = this.resourceMethod.getJavaDoc(this.registrationContext.getTagHandler()).get("since");
 return tags == null ? null : tags.toString();
}

代码示例来源:origin: stoicflame/enunciate

@Override
public String getVersion() {
 JavaDoc.JavaDocTagList tags = this.resourceMethod.getJavaDoc(this.registrationContext.getTagHandler()).get("version");
 return tags == null ? null : tags.toString();
}

代码示例来源:origin: stoicflame/enunciate

@Override
public String getSince() {
 JavaDoc.JavaDocTagList tags = this.requestMapping.getJavaDoc(this.registrationContext.getTagHandler()).get("since");
 if (tags == null) {
  tags = this.requestMapping.getParent().getJavaDoc(this.registrationContext.getTagHandler()).get("since");
 }
 if (tags == null) {
  tags = ((DecoratedElement) this.requestMapping.getParent().getPackage()).getJavaDoc(this.registrationContext.getTagHandler()).get("since");
 }
 return tags == null ? null : tags.toString();
}

相关文章