com.puppycrawl.tools.checkstyle.checks
Class AbstractTypeAwareCheck.Token

java.lang.Object
  extended by 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.


Constructor Summary
AbstractTypeAwareCheck.Token(FullIdent aFullIdent)
          Converts FullIdent to Token.
AbstractTypeAwareCheck.Token(java.lang.String aText, int aLine, int aColumn)
          Creates token.
 
Method Summary
 int getColumnNo()
           
 int getLineNo()
           
 java.lang.String getText()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractTypeAwareCheck.Token

public AbstractTypeAwareCheck.Token(java.lang.String aText,
                                    int aLine,
                                    int aColumn)
Creates token.

Parameters:
aText - token's text
aLine - token's line number
aColumn - token's column number

AbstractTypeAwareCheck.Token

public AbstractTypeAwareCheck.Token(FullIdent aFullIdent)
Converts FullIdent to Token.

Parameters:
aFullIdent - full ident to convert.
Method Detail

getLineNo

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

getColumnNo

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

getText

public java.lang.String getText()
Returns:
text of the token

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2010. All Rights Reserved.