Class AbstractTypeAwareCheck.Token
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.AbstractTypeAwareCheck.Token
-
- Enclosing class:
- AbstractTypeAwareCheck
protected static class AbstractTypeAwareCheck.Token extends java.lang.Object
Represents text element with location in the text.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnNo()
Gets column number of the token.int
getLineNo()
Gets line number of the token.java.lang.String
getText()
Gets text of the token.java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-