Class TraditionalJavadocConverter
java.lang.Object
com.google.errorprone.bugpatterns.javadoc.TraditionalJavadocConverter
Converts traditional
/** ... */ Javadoc comments to Markdown /// Javadoc comments without
requiring symbol attribution or Error Prone's VisitorState.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA replacement of the source betweenstartandendwithtext. -
Method Summary
Modifier and TypeMethodDescriptionconvert(CompilationUnitTree compilationUnit, Tree declaration, DocCommentTree docCommentTree, DocTrees docTrees, String source) Converts a single traditional Javadoc comment to a Markdown Javadoc replacement, or returns empty if the comment is not a convertible/** ... */comment or fails validation.
-
Method Details
-
convert
public static Optional<TraditionalJavadocConverter.Replacement> convert(CompilationUnitTree compilationUnit, Tree declaration, DocCommentTree docCommentTree, DocTrees docTrees, String source) Converts a single traditional Javadoc comment to a Markdown Javadoc replacement, or returns empty if the comment is not a convertible/** ... */comment or fails validation.
-