java.lang.Object
com.renomad.minum.htmlparsing.HtmlParseNode
Represents the expected types of things we may encounter when parsing an HTML string, which
for our purposes is
ParseNodeType
.
See W3.org Elements
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHtmlParseNode
(ParseNodeType type, TagInfo tagInfo, List<HtmlParseNode> innerContent, String textContent) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getType()
int
hashCode()
print()
Return a list of strings of the text content of the tree.Return a list ofHtmlParseNode
nodes in the HTML that match provided attributes.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
HtmlParseNode
public HtmlParseNode(ParseNodeType type, TagInfo tagInfo, List<HtmlParseNode> innerContent, String textContent)
-
-
Method Details
-
print
Return a list of strings of the text content of the tree.This method traverses the tree from this node downwards, adding the text content as it goes. Its main purpose is to quickly render all the strings out of an HTML document at once.
-
search
Return a list ofHtmlParseNode
nodes in the HTML that match provided attributes. -
getType
-
getTagInfo
-
getInnerContent
-
getTextContent
-
equals
-
hashCode
public int hashCode() -
innerText
-