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 SummaryNested ClassesModifier and TypeClassDescriptionstatic enumA compatibility wrapper forTokens.Comment.CommentStyle.
- 
Method SummaryModifier 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
- 
getPospublic int getPos()
- 
getEndPospublic int getEndPos()
- 
getSourcePospublic 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
- 
isDeprecatedpublic boolean isDeprecated()We don't care about@deprecatedjavadoc tags (see the DepAnn check).- Returns:
- false
 
- 
toString
 
-