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 voidHtmlToPlainText.FormattingVisitor. head(Node node, int depth)voidHtmlToPlainText.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 voidW3CDom.W3CBuilder. copyAttributes(Node source, org.w3c.dom.Element el)voidW3CDom.W3CBuilder. head(Node source, int depth)voidW3CDom.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 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.(package private) classLeafNodeclassPseudoTextElementclassTextNodeA text node.classXmlDeclarationAn XML Declaration.Fields in org.jsoup.nodes declared as Node Modifier and Type Field Description (package private) NodeNode. parentNodeFields in org.jsoup.nodes with type parameters of type Node Modifier and Type Field Description (package private) java.util.List<Node>Element. childNodesprivate static java.util.List<Node>Element. EMPTY_NODESprivate static java.util.List<Node>LeafNode. EmptyNodesMethods in org.jsoup.nodes that return Node Modifier and Type Method Description NodeNode. after(java.lang.String html)Insert the specified HTML into the DOM after this node (i.e.NodeNode. after(Node node)Insert the specified node into the DOM after this node (i.e.NodeLeafNode. attr(java.lang.String key, java.lang.String value)NodeNode. attr(java.lang.String attributeKey, java.lang.String attributeValue)Set an attribute (key=value).NodeNode. before(java.lang.String html)Insert the specified HTML into the DOM before this node (i.e.NodeNode. before(Node node)Insert the specified node into the DOM before this node (i.e.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)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.NodeLeafNode. removeAttr(java.lang.String key)NodeNode. removeAttr(java.lang.String attributeKey)Remove an attribute from this element.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(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 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 (i.e.ElementElement. appendChild(Node child)Add a node child node to this element.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 (i.e.protected ElementElement. doClone(Node parent)protected NodeNode. doClone(Node parent)private ElementDocument. findFirstElementByTagName(java.lang.String tag, Node node)voidNode.OuterHtmlVisitor. head(Node node, int depth)ElementElement. insertChildren(int index, Node... children)Inserts the given child nodes into this element at the specified index.(package private) static Document.OutputSettingsNodeUtils. 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 ParserNodeUtils. parser(Node node)Get the parser that was used to make this node, or the default HTML parser if it has no parent.ElementElement. prependChild(Node child)Add a node to the start of this element's children.(package private) static booleanElement. preserveWhitespace(Node node)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)voidNode.OuterHtmlVisitor. tail(Node node, int depth)Method parameters in org.jsoup.nodes with type arguments of type Node Modifier and Type Method Description ElementElement. 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) voidHtmlTreeBuilder. insertInFosterParent(Node in)private voidHtmlTreeBuilder. insertNode(Node node)private voidXmlTreeBuilder. 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 voidCleaner.CleaningVisitor. head(Node source, int depth)voidCleaner.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.FilterResultNodeTraversor. filter(NodeFilter filter, Node root)Start a depth-first filtering of the root and all of its descendants.voidCollector.Accumulator. head(Node node, int depth)NodeFilter.FilterResultCollector.FirstFinder. head(Node node, int depth)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.voidCollector.Accumulator. tail(Node node, int depth)NodeFilter.FilterResultCollector.FirstFinder. tail(Node node, int depth)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.voidNodeTraversor. traverse(Node root)Deprecated.Just use the staticNodeTraversor.filter(NodeFilter, Node)method.static voidNodeTraversor. traverse(NodeVisitor visitor, Node root)Start a depth-first traverse of the root and all of its descendants.
-