Uses of Class
org.jsoup.nodes.Node
| Package | Description |
|---|---|
| org.jsoup.helper |
Package containing classes supporting the core jsoup code.
|
| org.jsoup.nodes |
HTML document structure nodes.
|
| org.jsoup.parser |
Contains the HTML parser, tag specifications, and HTML tokeniser.
|
| org.jsoup.select |
Packages to support the CSS-style element selector.
|
-
Uses of Node in org.jsoup.helper
-
Uses of Node in org.jsoup.nodes
Subclasses of Node in org.jsoup.nodes Modifier and Type Class Description classCDataNodeA Character Data node, to support CDATA sections.classCommentA comment node.classDataNodeA data node, for contents of style, script tags etc, where contents should not show in text().classDocumentA HTML Document.classDocumentTypeA<!DOCTYPE>node.classElementA HTML element consists of a tag name, attributes, and child nodes (including text nodes and other elements).classFormElementA HTML Form Element provides ready access to the form fields/controls that are associated with it.classPseudoTextElementclassTextNodeA text node.classXmlDeclarationAn XML Declaration.Methods in org.jsoup.nodes that return Node Modifier and Type Method Description NodeNode. after(String html)Insert the specified HTML into the DOM after this node (as a following sibling).NodeNode. after(Node node)Insert the specified node into the DOM after this node (as a following sibling).NodeNode. attr(String attributeKey, String attributeValue)Set an attribute (key=value).NodeNode. before(String html)Insert the specified HTML into the DOM before this node (as a preceding sibling).NodeNode. before(Node node)Insert the specified node into the DOM before this node (as a preceding sibling).NodeNode. childNode(int index)Get a child node by its 0-based index.protected Node[]Node. childNodesAsArray()NodeNode. clearAttributes()Clear (remove) all of the attributes in this node.NodeNode. clone()Create a stand-alone, deep copy of this node, and all of its children.protected NodeNode. doClone(Node parent)abstract NodeNode. empty()Delete all this node's children.NodeNode. filter(NodeFilter nodeFilter)Perform a depth-first filtering through this node and its descendants.NodeNode. nextSibling()Get this node's next sibling.NodeNode. parent()Gets this node's parent node.NodeNode. parentNode()Gets this node's parent node.NodeNode. previousSibling()Get this node's previous sibling.NodeNode. removeAttr(String attributeKey)Remove an attribute from this node.NodeNode. root()Get this node's root node; that is, its topmost ancestor.NodeNode. shallowClone()Create a stand-alone, shallow copy of this node.NodeNode. traverse(NodeVisitor nodeVisitor)Perform a depth-first traversal through this node and its descendants.NodeNode. unwrap()Removes this node from the DOM, and moves its children up into the node's parent.NodeNode. wrap(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 List<Node>Node. childNodes()Get this node's children.List<Node>Node. childNodesCopy()Returns a deep copy of this node's children.protected List<Node>Element. ensureChildNodes()protected abstract List<Node>Node. ensureChildNodes()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 voidNode. addChildren(int index, Node... children)protected voidNode. addChildren(Node... children)ElementElement. after(Node node)Insert the specified node into the DOM after this node (as a following sibling).NodeNode. after(Node node)Insert the specified node into the DOM after this node (as a following sibling).ElementElement. appendChild(Node child)Insert a node to the end of this Element's children.ElementElement. before(Node node)Insert the specified node into the DOM before this node (as a preceding sibling).NodeNode. before(Node node)Insert the specified node into the DOM before this node (as a preceding sibling).protected ElementElement. doClone(Node parent)protected NodeNode. doClone(Node parent)ElementElement. insertChildren(int index, Node... children)Inserts the given child nodes into this element at the specified index.ElementElement. prependChild(Node child)Add a node to the start of this element's children.protected voidFormElement. removeChild(Node out)protected voidNode. removeChild(Node out)protected voidNode. reparentChild(Node child)protected voidNode. replaceChild(Node out, Node in)voidNode. replaceWith(Node in)Replace this node in the DOM with the supplied node.protected voidNode. setParentNode(Node parentNode)Method parameters in org.jsoup.nodes with type arguments of type Node Modifier and Type Method Description ElementElement. appendChildren(Collection<? extends Node> children)Insert the given nodes to the end of this Element's children.ElementElement. insertChildren(int index, Collection<? extends Node> children)Inserts the given child nodes into this element at the specified index.ElementElement. prependChildren(Collection<? extends Node> children)Insert the given nodes to the start of this Element's children. -
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 static List<Node>Parser. parseFragment(String fragmentHtml, Element context, String baseUri)Parse a fragment of HTML into a list of nodes.static List<Node>Parser. parseFragment(String fragmentHtml, Element context, String baseUri, ParseErrorList errorList)Parse a fragment of HTML into a list of nodes.List<Node>Parser. parseFragmentInput(String fragment, Element context, String baseUri)static List<Node>Parser. parseXmlFragment(String fragmentXml, String baseUri)Parse a fragment of XML into a list of nodes. -
Uses of Node in org.jsoup.select
Methods in org.jsoup.select with parameters of type Node Modifier and Type Method Description static NodeFilter.FilterResultNodeTraversor. filter(NodeFilter filter, Node root)Start a depth-first filtering of the root and all of its descendants.NodeFilter.FilterResultNodeFilter. head(Node node, int depth)Callback for when a node is first visited.voidNodeVisitor. head(Node node, int depth)Callback for when a node is first visited.NodeFilter.FilterResultNodeFilter. tail(Node node, int depth)Callback for when a node is last visited, after all of its descendants have been visited.voidNodeVisitor. tail(Node node, int depth)Callback for when a node is last visited, after all of its descendants have been visited.static voidNodeTraversor. traverse(NodeVisitor visitor, Node root)Start a depth-first traverse of the root and all of its descendants.