Class ErrorProneComment
java.lang.Object
com.google.errorprone.util.ErrorProneComment
Wraps a
Tokens.Comment to allow an offset source position to be reported.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA compatibility wrapper forTokens.Comment.CommentStyle. -
Method Summary
Modifier and TypeMethodDescriptionintintgetPos()intgetSourcePos(int index) Returns the source position of the character at indexindexin the comment text.getStyle()getText()booleanWe don't care about@deprecatedjavadoc tags (see the DepAnn check).toString()withOffset(int offset)
-
Method Details
-
withOffset
-
getPos
public int getPos() -
getEndPos
public int getEndPos() -
getSourcePos
public int getSourcePos(int index) Returns the source position of the character at indexindexin the comment text.The handling of javadoc comments in javac has more logic to skip over leading whitespace and '*' characters when indexing into doc comments, but we don't need any of that.
-
getStyle
-
getText
-
isDeprecated
public boolean isDeprecated()We don't care about@deprecatedjavadoc tags (see the DepAnn check).- Returns:
- false
-
toString
-