Class JavadocComment
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.ast.JavaComment
-
- net.sourceforge.pmd.lang.java.ast.JavadocComment
-
- All Implemented Interfaces:
net.sourceforge.pmd.reporting.Reportable
public final class JavadocComment extends JavaComment
AJavaCommentthat has Javadoc content.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable JavadocCommentOwnergetOwner()Returns the owner of this comment.net.sourceforge.pmd.lang.document.FileLocationgetReportLocation()net.sourceforge.pmd.lang.document.CharsgetText()Returns the full text of the comment.booleanisSingleLine()-
Methods inherited from class net.sourceforge.pmd.lang.java.ast.JavaComment
equals, getFilteredLines, getFilteredLines, getLeadingComments, getToken, hashCode, hasJavadocContent, isComment, isMarkupWord, removeCommentMarkup
-
-
-
-
Method Detail
-
getText
public net.sourceforge.pmd.lang.document.Chars getText()
Description copied from class:JavaCommentReturns the full text of the comment.- Overrides:
getTextin classJavaComment
-
getReportLocation
public net.sourceforge.pmd.lang.document.FileLocation getReportLocation()
- Specified by:
getReportLocationin interfacenet.sourceforge.pmd.reporting.Reportable- Overrides:
getReportLocationin classJavaComment
-
isSingleLine
public boolean isSingleLine()
- Overrides:
isSingleLinein classJavaComment
-
getOwner
public @Nullable JavadocCommentOwner getOwner()
Returns the owner of this comment. Null if this comment is misplaced.
-
-