Class AbstractTypeAwareCheck.Token
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractTypeAwareCheck.Token
-
- Enclosing class:
- AbstractTypeAwareCheck
protected static class AbstractTypeAwareCheck.Token extends Object
Represents text element with location in the text.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnNo()Gets column number of the token.intgetLineNo()Gets line number of the token.StringgetText()Gets text of the token.StringtoString()
-
-
-
Constructor Detail
-
Token
public Token(String text, int lineNo, int columnNo)
Creates token.- Parameters:
text- token's textlineNo- token's line numbercolumnNo- token's column number
-
Token
public Token(FullIdent fullIdent)
Converts FullIdent to Token.- Parameters:
fullIdent- full ident to convert.
-
-
Method Detail
-
getLineNo
public int getLineNo()
Gets line number of the token.- Returns:
- line number of the token
-
getColumnNo
public int getColumnNo()
Gets column number of the token.- Returns:
- column number of the token
-
getText
public String getText()
Gets text of the token.- Returns:
- text of the token
-
-