Package org.htmlcleaner
Class ChildBreaks
java.lang.Object
org.htmlcleaner.ChildBreaks
Contains information about nodes that were closed due to their child nodes.
i.e. if 'p' tag was closed due to 'table' child tag.
-
Field Details
-
closedByChildBreak
-
breakingTags
-
-
Constructor Details
-
ChildBreaks
ChildBreaks()
-
-
Method Details
-
addBreak
Adds the break info to the top of the stacks.- Parameters:
closedPos
- - position of the tag that was closed due to incorrect childbreakPos
- - position of the child that has broken its parent
-
isEmpty
public boolean isEmpty() -
getLastBreakingTag
- Returns:
- name of the last children tag that has broken its parent.
-
pop
pops out latest broken tag position.- Returns:
- tag pos of the last parent that was broken.
-
getLastBreakingTagPosition
public int getLastBreakingTagPosition()- Returns:
- position of the last tag that has broken its parent. -1 if no such tag found.
-