org.htmlcleaner
Class BaseTokenImpl
java.lang.Object
org.htmlcleaner.BaseTokenImpl
- All Implemented Interfaces:
- BaseToken
- Direct Known Subclasses:
- CommentNode, ContentNode, DoctypeToken, TagToken
public abstract class BaseTokenImpl
- extends Object
- implements BaseToken
Base class for all tokens. Allows position tracking.
- Author:
- Konstantin Burov (aectann@gmail.com)
BaseTokenImpl
protected BaseTokenImpl()
BaseTokenImpl
protected BaseTokenImpl(int row,
int col)
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 String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2014. All Rights Reserved.