com.puppycrawl.tools.checkstyle.checks

Class AbstractTypeAwareCheck.Token

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
intgetColumnNo()
intgetLineNo()
StringgetText()

Constructor Detail

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 Detail

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