Class JavadocComment
java.lang.Object
net.sourceforge.pmd.lang.java.ast.JavaComment
net.sourceforge.pmd.lang.java.ast.JavadocComment
- All Implemented Interfaces:
Reportable
A
JavaComment that has Javadoc content.-
Method Summary
Modifier and TypeMethodDescription@Nullable JavadocCommentOwnergetOwner()Returns the owner of this comment.getText()Returns the full text of the comment.booleanMethods inherited from class net.sourceforge.pmd.lang.java.ast.JavaComment
equals, getFilteredLines, getFilteredLines, getLeadingComments, getToken, hashCode, hasJavadocContent, isComment, isMarkupWord, removeCommentMarkup
-
Method Details
-
getText
Description copied from class:JavaCommentReturns the full text of the comment.- Overrides:
getTextin classJavaComment
-
getReportLocation
- Specified by:
getReportLocationin interfaceReportable- Overrides:
getReportLocationin classJavaComment
-
isSingleLine
public boolean isSingleLine()- Overrides:
isSingleLinein classJavaComment
-
getOwner
Returns the owner of this comment. Null if this comment is misplaced.
-