Class BaseTokenImpl

  • All Implemented Interfaces:
    BaseToken
    Direct Known Subclasses:
    BaseHtmlNode

    public abstract class BaseTokenImpl
    extends java.lang.Object
    implements BaseToken
    Base class for all tokens. Allows position tracking.
    Author:
    Konstantin Burov (aectann@gmail.com)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseTokenImpl()  
      protected BaseTokenImpl​(int row, int col)  
    • Constructor Detail

      • BaseTokenImpl

        protected BaseTokenImpl()
      • BaseTokenImpl

        protected BaseTokenImpl​(int row,
                                int col)
    • Method Detail

      • getRow

        public int getRow()
        Specified by:
        getRow in interface BaseToken
        Returns:
        row in source html where the token was found
      • setRow

        public void setRow​(int row)
        Specified by:
        setRow in interface BaseToken
      • getCol

        public int getCol()
        Specified by:
        getCol in interface BaseToken
        Returns:
        col in source html where the token was found
      • setCol

        public void setCol​(int col)
        Specified by:
        setCol in interface BaseToken
      • toString

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