org.htmlcleaner
Class BaseTokenImpl

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

Constructor Summary
protected BaseTokenImpl()
           
protected BaseTokenImpl(int row, int col)
           
 
Method Summary
 int getCol()
           
 int getRow()
           
 void setCol(int col)
           
 void setRow(int row)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.htmlcleaner.BaseToken
serialize
 

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 String toString()
Overrides:
toString in class Object


Copyright © 2006-2014. All Rights Reserved.