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; }
/** * The documentation. * * @return The documentation. */ public String getDocValue(JavaDocTagHandler tagHandler) { return this.docComment.get(tagHandler); }
/** * To construct a tag list, at least one value must be supplied. * * @param firstValue The first value. */ public JavaDocTagList(String firstValue) { add(firstValue); }
@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; } }
/** * @return The first value in the list. */ public String toString() { return get(0); }
@Override public JavaDoc getJavaDoc() { return new JavaDoc(this.description, null, null, null); }
private void assumeInheritedComments(DecoratedElement context, DecoratedProcessingEnvironment env, JavaDocTagHandler tagHandler) { //algorithm defined per http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html#inheritingcomments if (context instanceof TypeElement) { assumeInheritedTypeComments((TypeElement) context, tagHandler); } else if (context instanceof ExecutableElement) { assumeInheritedExecutableComments((ExecutableElement) context, env, tagHandler); } }
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; }
/** * @return The first value in the list. */ public String toString() { return get(0); }
/** * The documentation. * * @return The documentation. * @param tagHandler The tag handler. */ public String getDocValue(JavaDocTagHandler tagHandler) { return this.docComment.get(tagHandler); }
private void assumeInheritedComments(DecoratedElement context, DecoratedProcessingEnvironment env, JavaDocTagHandler tagHandler) { //algorithm defined per http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html#inheritingcomments if (context instanceof TypeElement) { assumeInheritedTypeComments((TypeElement) context, tagHandler); } else if (context instanceof ExecutableElement) { assumeInheritedExecutableComments((ExecutableElement) context, env, tagHandler); } }
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; }
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; }
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; }
public static String findDeprecationMessage(DecoratedElement<?> el, JavaDocTagHandler tagHandler) { Deprecated deprecation = el.getAnnotation(Deprecated.class); String message = null; if (deprecation != null) { message = ""; } JavaDoc.JavaDocTagList tagList = el.getJavaDoc(tagHandler).get("deprecated"); if (tagList != null) { message = tagList.toString(); } return message; }
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; }