public class TagFindingVisitor extends NodeVisitor
Constructor | Description |
---|---|
TagFindingVisitor(java.lang.String[] tagsToBeFound) |
|
TagFindingVisitor(java.lang.String[] tagsToBeFound,
boolean endTagCheck) |
Modifier and Type | Method | Description |
---|---|---|
int |
getEndTagCount(int index) |
|
int |
getTagCount(int index) |
|
Node[] |
getTags(int index) |
|
void |
visitEndTag(Tag tag) |
Called for each
Tag visited that is an end tag. |
void |
visitTag(Tag tag) |
Called for each
Tag visited. |
beginParsing, finishedParsing, shouldRecurseChildren, shouldRecurseSelf, visitRemarkNode, visitStringNode
public TagFindingVisitor(java.lang.String[] tagsToBeFound)
public TagFindingVisitor(java.lang.String[] tagsToBeFound, boolean endTagCheck)
public int getTagCount(int index)
public void visitTag(Tag tag)
NodeVisitor
Tag
visited.visitTag
in class NodeVisitor
tag
- The tag being visited.public void visitEndTag(Tag tag)
NodeVisitor
Tag
visited that is an end tag.visitEndTag
in class NodeVisitor
tag
- The end tag being visited.public Node[] getTags(int index)
public int getEndTagCount(int index)
HTML Parser is an open source library released under LGPL.