Class DocumentationExtractor
java.lang.Object
org.infinispan.protostream.annotations.impl.types.DocumentationExtractor
- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringBuilderannotationToString(StringBuilder docs, String s, boolean fullyQualified) static StringgetDocumentation(Class<?> clazz, boolean fullyQualified) static StringgetDocumentation(Field f, boolean fullyQualified) static StringgetDocumentation(Method method, boolean fullyQualified) private static StringgetDocumentation(StringBuilder docs, Annotation[] annotations, boolean fullyQualified) static StringgetDocumentation(Element element, boolean fullyQualified) Collect and concatenate the description text from an element (type, field, method).private static StringBuildergetDocumentation(ProtoComment[] annotations) Collect and concatenate the description text from the@ProtoDoc.valueof the given ProtoDoc annotations (that were previously obtained either from an AnnotatedElement or an AnnotatedConstruct).
-
Field Details
-
PROTOSTREAM_ANNOTATIONS_PREFIX
- See Also:
-
-
Constructor Details
-
DocumentationExtractor
public DocumentationExtractor()
-
-
Method Details
-
getDocumentation
Collect and concatenate the description text from the@ProtoDoc.valueof the given ProtoDoc annotations (that were previously obtained either from an AnnotatedElement or an AnnotatedConstruct). Each annotation value is put on a separate line. The beginning and trailing empty lines are trimmed off. If the resulting documentation text does not have any line thennullis returned. -
getDocumentation
Collect and concatenate the description text from an element (type, field, method). This unwraps@ProtoDoc.values and copies other annotations as-is. The beginning and trailing empty lines are trimmed off. If the resulting documentation text does not have any line thennullis returned. -
getDocumentation
-
getDocumentation
-
getDocumentation
-
getDocumentation
private static String getDocumentation(StringBuilder docs, Annotation[] annotations, boolean fullyQualified) -
annotationToString
private static StringBuilder annotationToString(StringBuilder docs, String s, boolean fullyQualified)
-