use of com.webcohesion.enunciate.javac.decorations.element.DecoratedElement in project enunciate by stoicflame.
the class DataTypeExampleImpl method getDocumentationExampleTags.
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;
}
Aggregations