Class AbstractTypeAwareCheck.Token

  • Enclosing class:
    AbstractTypeAwareCheck

    protected static class AbstractTypeAwareCheck.Token
    extends java.lang.Object
    Represents text element with location in the text.
    • Constructor Summary

      Constructors 
      Constructor Description
      Token​(FullIdent fullIdent)
      Converts FullIdent to Token.
      Token​(java.lang.String text, int lineNo, int columnNo)
      Creates token.
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Token

        public Token​(java.lang.String text,
                     int lineNo,
                     int columnNo)
        Creates token.
        Parameters:
        text - token's text
        lineNo - token's line number
        columnNo - 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 class java.lang.Object