Class JavadocParser
java.lang.Object
com.github.javaparser.JavadocParser
The class responsible for parsing the content of JavadocComments and producing JavadocDocuments.
The Javadoc specification.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncleanLines(String content, boolean isMarkdownComment) private static booleanisABlockLine(String line) static Javadocparse(JavadocComment comment) static Javadocstatic Javadocprivate static JavadocBlockTagparseBlockTag(String line) (package private) static intGiven a line in a block or markdown comment, this method finds the index of the * or / at the start of the line.private static String
-
Field Details
-
BLOCK_TAG_PREFIX
-
BLOCK_PATTERN
-
-
Constructor Details
-
JavadocParser
JavadocParser()
-
-
Method Details
-
parse
-
parse
-
parse
-
parseBlockTag
-
isABlockLine
-
trimRight
-
cleanLines
-
startsWithAsteriskOrMdSlash
Given a line in a block or markdown comment, this method finds the index of the * or / at the start of the line. For markdown comments where lines start with ///, this would be the index of the third /. This is used to strip the relevant prefix string when cleaning lines as part of the Javadoc parsing process. It is made visible for testing
-