Class BaseTokenImpl

java.lang.Object
org.htmlcleaner.BaseTokenImpl
All Implemented Interfaces:
BaseToken
Direct Known Subclasses:
BaseHtmlNode

public abstract class BaseTokenImpl extends Object implements BaseToken
Base class for all tokens. Allows position tracking.
  • Field Details

    • row

      private int row
    • col

      private int col
  • Constructor Details

    • BaseTokenImpl

      protected BaseTokenImpl()
    • BaseTokenImpl

      protected BaseTokenImpl(int row, int col)
  • Method Details

    • 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
      Parameters:
      row -
    • 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
      Parameters:
      col -
    • toString

      public String toString()
      Overrides:
      toString in class Object