Class TraditionalJavadocToMarkdown

java.lang.Object
com.google.errorprone.bugpatterns.BugChecker
com.google.errorprone.bugpatterns.javadoc.TraditionalJavadocToMarkdown
All Implemented Interfaces:
BugChecker.ClassTreeMatcher, BugChecker.MethodTreeMatcher, BugChecker.ModuleTreeMatcher, BugChecker.PackageTreeMatcher, BugChecker.VariableTreeMatcher, Suppressible, Serializable

An experimental tool that converts traditional Javadoc comments to Markdown Javadoc comments.

The conversion happens in three steps:

  1. MarkdownCommentBuilder converts the comment's doc tree into a MarkdownComment, keeping any constructs that have no faithful Markdown equivalent as HTML or as traditional inline tags (both of which Markdown documentation comments support).
  2. MarkdownCommentPrinter prints the MarkdownComment, escaping any text that would otherwise be interpreted as Markdown.
  3. MarkdownCommentValidator parses the printed Markdown and checks that it has the intended structure.

A comment is left unchanged if any of these steps fails.

WARNING: this tool is currently a prototype and may have bugs.

See Also: