Uses of Class
org.jsoup.nodes.Node
-
Packages that use Node Package Description org.jsoup.examples Contains example programs and use of jsoup.org.jsoup.helper org.jsoup.nodes HTML document structure nodes.org.jsoup.parser Contains the HTML parser, tag specifications, and HTML tokeniser.org.jsoup.safety Contains the jsoup HTML cleaner, and whitelist definitions.org.jsoup.select Packages to support the CSS-style element selector. -
-
Uses of Node in org.jsoup.examples
Methods in org.jsoup.examples with parameters of type Node Modifier and Type Method Description void
HtmlToPlainText.FormattingVisitor. head(Node node, int depth)
void
HtmlToPlainText.FormattingVisitor. tail(Node node, int depth)
-
Uses of Node in org.jsoup.helper
Methods in org.jsoup.helper with parameters of type Node Modifier and Type Method Description private void
W3CDom.W3CBuilder. copyAttributes(Node source, org.w3c.dom.Element el)
void
W3CDom.W3CBuilder. head(Node source, int depth)
void
W3CDom.W3CBuilder. tail(Node source, int depth)
-
Uses of Node in org.jsoup.nodes
Subclasses of Node in org.jsoup.nodes Modifier and Type Class Description class
CDataNode
A Character Data node, to support CDATA sections.class
Comment
A comment node.class
DataNode
A data node, for contents of style, script tags etc, where contents should not show in text().class
Document
A HTML Document.class
DocumentType
A<!DOCTYPE>
node.class
Element
A HTML element consists of a tag name, attributes, and child nodes (including text nodes and other elements).class
FormElement
A HTML Form Element provides ready access to the form fields/controls that are associated with it.(package private) class
LeafNode
class
PseudoTextElement
class
TextNode
A text node.class
XmlDeclaration
An XML Declaration.Fields in org.jsoup.nodes declared as Node Modifier and Type Field Description (package private) Node
Node. parentNode
Fields in org.jsoup.nodes with type parameters of type Node Modifier and Type Field Description (package private) java.util.List<Node>
Element. childNodes
private static java.util.List<Node>
Element. EMPTY_NODES
private static java.util.List<Node>
LeafNode. EmptyNodes
Methods in org.jsoup.nodes that return Node Modifier and Type Method Description Node
Node. after(java.lang.String html)
Insert the specified HTML into the DOM after this node (i.e.Node
Node. after(Node node)
Insert the specified node into the DOM after this node (i.e.Node
LeafNode. attr(java.lang.String key, java.lang.String value)
Node
Node. attr(java.lang.String attributeKey, java.lang.String attributeValue)
Set an attribute (key=value).Node
Node. before(java.lang.String html)
Insert the specified HTML into the DOM before this node (i.e.Node
Node. before(Node node)
Insert the specified node into the DOM before this node (i.e.Node
Node. childNode(int index)
Get a child node by its 0-based index.protected Node[]
Node. childNodesAsArray()
Node
Node. clearAttributes()
Clear (remove) all of the attributes in this node.Node
Node. clone()
Create a stand-alone, deep copy of this node, and all of its children.protected Node
Node. doClone(Node parent)
Node
Node. filter(NodeFilter nodeFilter)
Perform a depth-first filtering through this node and its descendants.Node
Node. nextSibling()
Get this node's next sibling.Node
Node. parent()
Gets this node's parent node.Node
Node. parentNode()
Gets this node's parent node.Node
Node. previousSibling()
Get this node's previous sibling.Node
LeafNode. removeAttr(java.lang.String key)
Node
Node. removeAttr(java.lang.String attributeKey)
Remove an attribute from this element.Node
Node. root()
Get this node's root node; that is, its topmost ancestor.Node
Node. shallowClone()
Create a stand-alone, shallow copy of this node.Node
Node. traverse(NodeVisitor nodeVisitor)
Perform a depth-first traversal through this node and its descendants.Node
Node. unwrap()
Removes this node from the DOM, and moves its children up into the node's parent.Node
Node. wrap(java.lang.String html)
Wrap the supplied HTML around this node.Methods in org.jsoup.nodes that return types with arguments of type Node Modifier and Type Method Description java.util.List<Node>
Node. childNodes()
Get this node's children.java.util.List<Node>
Node. childNodesCopy()
Returns a deep copy of this node's children.protected java.util.List<Node>
Element. ensureChildNodes()
protected java.util.List<Node>
LeafNode. ensureChildNodes()
protected abstract java.util.List<Node>
Node. ensureChildNodes()
java.util.List<Node>
Node. siblingNodes()
Retrieves this node's sibling nodes.Methods in org.jsoup.nodes with parameters of type Node Modifier and Type Method Description protected void
Node. addChildren(int index, Node... children)
protected void
Node. addChildren(Node... children)
Element
Element. after(Node node)
Insert the specified node into the DOM after this node (as a following sibling).Node
Node. after(Node node)
Insert the specified node into the DOM after this node (i.e.Element
Element. appendChild(Node child)
Add a node child node to this element.Element
Element. before(Node node)
Insert the specified node into the DOM before this node (as a preceding sibling).Node
Node. before(Node node)
Insert the specified node into the DOM before this node (i.e.protected Element
Element. doClone(Node parent)
protected Node
Node. doClone(Node parent)
private Element
Document. findFirstElementByTagName(java.lang.String tag, Node node)
void
Node.OuterHtmlVisitor. head(Node node, int depth)
Element
Element. insertChildren(int index, Node... children)
Inserts the given child nodes into this element at the specified index.(package private) static Document.OutputSettings
NodeUtils. outputSettings(Node node)
Get the output setting for this node, or if this node has no document (or parent), retrieve the default output settings(package private) static Parser
NodeUtils. parser(Node node)
Get the parser that was used to make this node, or the default HTML parser if it has no parent.Element
Element. prependChild(Node child)
Add a node to the start of this element's children.(package private) static boolean
Element. preserveWhitespace(Node node)
protected void
FormElement. removeChild(Node out)
protected void
Node. removeChild(Node out)
protected void
Node. reparentChild(Node child)
protected void
Node. replaceChild(Node out, Node in)
void
Node. replaceWith(Node in)
Replace this node in the DOM with the supplied node.protected void
Node. setParentNode(Node parentNode)
void
Node.OuterHtmlVisitor. tail(Node node, int depth)
Method parameters in org.jsoup.nodes with type arguments of type Node Modifier and Type Method Description Element
Element. insertChildren(int index, java.util.Collection<? extends Node> children)
Inserts the given child nodes into this element at the specified index. -
Uses of Node in org.jsoup.parser
Methods in org.jsoup.parser that return types with arguments of type Node Modifier and Type Method Description (package private) java.util.List<Node>
HtmlTreeBuilder. parseFragment(java.lang.String inputFragment, Element context, java.lang.String baseUri, Parser parser)
static java.util.List<Node>
Parser. parseFragment(java.lang.String fragmentHtml, Element context, java.lang.String baseUri)
Parse a fragment of HTML into a list of nodes.static java.util.List<Node>
Parser. parseFragment(java.lang.String fragmentHtml, Element context, java.lang.String baseUri, ParseErrorList errorList)
Parse a fragment of HTML into a list of nodes.(package private) abstract java.util.List<Node>
TreeBuilder. parseFragment(java.lang.String inputFragment, Element context, java.lang.String baseUri, Parser parser)
(package private) java.util.List<Node>
XmlTreeBuilder. parseFragment(java.lang.String inputFragment, java.lang.String baseUri, Parser parser)
(package private) java.util.List<Node>
XmlTreeBuilder. parseFragment(java.lang.String inputFragment, Element context, java.lang.String baseUri, Parser parser)
java.util.List<Node>
Parser. parseFragmentInput(java.lang.String fragment, Element context, java.lang.String baseUri)
static java.util.List<Node>
Parser. parseXmlFragment(java.lang.String fragmentXml, java.lang.String baseUri)
Parse a fragment of XML into a list of nodes.Methods in org.jsoup.parser with parameters of type Node Modifier and Type Method Description (package private) void
HtmlTreeBuilder. insertInFosterParent(Node in)
private void
HtmlTreeBuilder. insertNode(Node node)
private void
XmlTreeBuilder. insertNode(Node node)
-
Uses of Node in org.jsoup.safety
Methods in org.jsoup.safety with parameters of type Node Modifier and Type Method Description void
Cleaner.CleaningVisitor. head(Node source, int depth)
void
Cleaner.CleaningVisitor. tail(Node source, int depth)
-
Uses of Node in org.jsoup.select
Methods in org.jsoup.select with parameters of type Node Modifier and Type Method Description static NodeFilter.FilterResult
NodeTraversor. filter(NodeFilter filter, Node root)
Start a depth-first filtering of the root and all of its descendants.void
Collector.Accumulator. head(Node node, int depth)
NodeFilter.FilterResult
Collector.FirstFinder. head(Node node, int depth)
NodeFilter.FilterResult
NodeFilter. head(Node node, int depth)
Callback for when a node is first visited.void
NodeVisitor. head(Node node, int depth)
Callback for when a node is first visited.void
Collector.Accumulator. tail(Node node, int depth)
NodeFilter.FilterResult
Collector.FirstFinder. tail(Node node, int depth)
NodeFilter.FilterResult
NodeFilter. tail(Node node, int depth)
Callback for when a node is last visited, after all of its descendants have been visited.void
NodeVisitor. tail(Node node, int depth)
Callback for when a node is last visited, after all of its descendants have been visited.void
NodeTraversor. traverse(Node root)
Deprecated.Just use the staticNodeTraversor.filter(NodeFilter, Node)
method.static void
NodeTraversor. traverse(NodeVisitor visitor, Node root)
Start a depth-first traverse of the root and all of its descendants.
-