com.puppycrawl.tools.checkstyle.checks

Class AbstractTypeAwareCheck.Token

Enclosing Class:
AbstractTypeAwareCheck

protected static class AbstractTypeAwareCheck.Token
extends Object

Represents text element with location in the text.

Constructor Summary

Token(String aText, int aLine, int aColumn)
Creates token.
Token(FullIdent aFullIdent)
Converts FullIdent to Token.

Method Summary

int
getColumnNo()
int
getLineNo()
String
getText()
String
toString()

Constructor Details

Token

public Token(String aText,
             int aLine,
             int aColumn)
Creates token.
Parameters:
aText - token's text
aLine - token's line number
aColumn - token's column number

Token

public Token(FullIdent aFullIdent)
Converts FullIdent to Token.
Parameters:
aFullIdent - full ident to convert.

Method Details

getColumnNo

public int getColumnNo()
Returns:
column number of the token

getLineNo

public int getLineNo()
Returns:
line number of the token

getText

public String getText()
Returns:
text of the token

toString

public String toString()