Class AbstractTypeAwareCheck.Token
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractTypeAwareCheck.Token
-
- Enclosing class:
- AbstractTypeAwareCheck
protected static class AbstractTypeAwareCheck.Token extends java.lang.ObjectRepresents 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.java.lang.StringgetText()Gets text of the token.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Token
public Token(java.lang.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 java.lang.String getText()
Gets text of the token.- Returns:
- text of the token
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-