Uses of Class
jodd.lagarto.dom.Node
Packages that use Node
Package
Description
CSSelly - CSS selector parser.
Different CSSelector selectors.
Jerry - Java jQuery!
Lagarto DOM - create cool DOM tree with Lagarto parser.
-
Uses of Node in jodd.csselly
Methods in jodd.csselly with parameters of type NodeModifier and TypeMethodDescriptionbooleanAccepts node within current results.booleanAccepts single node.protected booleanCssSelector.matchElement(Node node) Matches element to css selector.Method parameters in jodd.csselly with type arguments of type Node -
Uses of Node in jodd.csselly.selector
Methods in jodd.csselly.selector with parameters of type NodeModifier and TypeMethodDescriptionbooleanbooleanAccepts node within selected results.booleanMatches node to this selector.booleanAccepts node within selected results.booleanMatches nodes with this pseudo function selector.abstract booleanReturnstrueif node matches the pseudo-class.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanabstract booleanMatches node using provided parsed expression.booleanbooleanbooleanbooleanPseudoFunctions.HAS.match(Node node, List<List<CssSelector>> selectors) booleanbooleanPseudoFunctions.NOT.match(Node node, List<List<CssSelector>> selectors) booleanPseudoFunctions.NTH_CHILD.match(Node node, PseudoFunctionExpression expression) booleanPseudoFunctions.NTH_LAST_CHILD.match(Node node, PseudoFunctionExpression expression) booleanPseudoFunctions.NTH_LAST_OF_TYPE.match(Node node, PseudoFunctionExpression expression) booleanPseudoFunctions.NTH_OF_TYPE.match(Node node, PseudoFunctionExpression expression) booleanPseudoClass.matchInRange(List<Node> matchedResults, Node node, int index) Returnstrueif node matches the pseudo-class within current results.booleanPseudoClasses.EVEN.matchInRange(List<Node> matchedResults, Node node, int index) booleanPseudoClasses.FIRST.matchInRange(List<Node> matchedResults, Node node, int index) booleanPseudoClasses.LAST.matchInRange(List<Node> matchedResults, Node node, int index) booleanPseudoClasses.ODD.matchInRange(List<Node> matchedResults, Node node, int index) booleanPseudoFunction.matchInRange(List<Node> matchedResults, Node node, int index, E expression) Returnstrueif node matches the pseudo-class within currently matched results.booleanPseudoFunctions.EQ.matchInRange(List<Node> matchedResults, Node node, int index, Integer expression) booleanPseudoFunctions.GT.matchInRange(List<Node> matchedResults, Node node, int index, Integer expression) booleanPseudoFunctions.LT.matchInRange(List<Node> matchedResults, Node node, int index, Integer expression) Method parameters in jodd.csselly.selector with type arguments of type NodeModifier and TypeMethodDescriptionbooleanAccepts node within selected results.booleanAccepts node within selected results.booleanPseudoClass.matchInRange(List<Node> matchedResults, Node node, int index) Returnstrueif node matches the pseudo-class within current results.booleanPseudoClasses.EVEN.matchInRange(List<Node> matchedResults, Node node, int index) booleanPseudoClasses.FIRST.matchInRange(List<Node> matchedResults, Node node, int index) booleanPseudoClasses.LAST.matchInRange(List<Node> matchedResults, Node node, int index) booleanPseudoClasses.ODD.matchInRange(List<Node> matchedResults, Node node, int index) booleanPseudoFunction.matchInRange(List<Node> matchedResults, Node node, int index, E expression) Returnstrueif node matches the pseudo-class within currently matched results.booleanPseudoFunctions.EQ.matchInRange(List<Node> matchedResults, Node node, int index, Integer expression) booleanPseudoFunctions.GT.matchInRange(List<Node> matchedResults, Node node, int index, Integer expression) booleanPseudoFunctions.LT.matchInRange(List<Node> matchedResults, Node node, int index, Integer expression) -
Uses of Node in jodd.jerry
Subclasses with type arguments of type Node in jodd.jerryFields in jodd.jerry declared as NodeMethods in jodd.jerry that return NodeModifier and TypeMethodDescriptionNode[]Jerry.get()Retrieve all DOM elements matched by this set.Jerry.get(int index) Returns node at given index.Methods in jodd.jerry with parameters of type NodeModifier and TypeMethodDescriptionbooleanprotected NodeSelectorJerry.createNodeSelector(Node node) Creates node selector.intSearches for a givenNodefrom among the matched elements.booleanInvoked on node.Constructors in jodd.jerry with parameters of type NodeModifierConstructorDescriptionprotectedCreates child Jerry.protectedCreates child Jerry.protectedJerry(DOMBuilder builder, Node... nodes) Creates root Jerry.Constructor parameters in jodd.jerry with type arguments of type Node -
Uses of Node in jodd.lagarto.dom
Subclasses of Node in jodd.lagarto.domModifier and TypeClassDescriptionclassCDATA node.classComment node.classDocument node is always a root node.classDocument type node.classTag node.classText node.classXML declaration node.Fields in jodd.lagarto.dom declared as NodeModifier and TypeFieldDescriptionprotected NodeLagartoDOMBuilderTagVisitor.parentNodeprotected NodeNode.parentNodeprotected final NodeNodeMatcher.rootNodeprotected final NodeNodeSelector.rootNodeFields in jodd.lagarto.dom with type parameters of type NodeMethods in jodd.lagarto.dom with type parameters of type NodeModifier and TypeMethodDescriptionprotected <T extends Node>
TNode.cloneTo(T dest) Copies all non-final values to the empty cloned object.Methods in jodd.lagarto.dom that return NodeModifier and TypeMethodDescriptionabstract NodeNode.clone()Node[]Node.filterChildNodes(Predicate<Node> nodePredicate) Filters child nodes.Node.findChildNodeWithName(String name) Finds the first child node with given node name.protected NodeLagartoDOMBuilderTagVisitor.findMatchingParentOpenTag(String tagName) Finds matching parent open tag ornullif not found.Node.getChild(int index) Returns a child node at given index ornullif child doesn't exist for that index.Node.getChild(int... indexes) Returns a child node with given hierarchy.Node[]Node.getChildNodes()Returns an array of all children nodes.Node.getFirstChild()Returns first child ornullif no children exist.Node.getLastChild()Returns last child ornullif no children exist.Node.getNextSibling()Returns this node's next sibling of any type ornullif this is the last sibling.Node.getNextSiblingElement()Returns this node's next element.Node.getNextSiblingName()Returns this node's next element with the same name.Node.getParentNode()Returns parent node ornullif no parent exist.Node.getPreviousSibling()Returns this node's previous sibling of any type ornullif this is the first sibling.Node.getPreviousSiblingElement()Returns this node's previous sibling of element type ornullif this is the first sibling.Node.getPreviousSiblingName()Returns this node's previous sibling element with the same name.static Node[]Node.removeChild(int index) Removes child node at given index.NodeSelector.selectFirst(String query) Selects nodes using CSS3 selector query and returns the very first one.NodeSelector.selectFirst(NodeFilter nodeFilter) Selects nodes usingnode filterand return the very first one.Methods in jodd.lagarto.dom that return types with arguments of type NodeModifier and TypeMethodDescriptionSelects nodes using CSS3 selector query.NodeSelector.select(Collection<List<CssSelector>> selectorsCollection) Selected nodes using pre-parsed CSS selectors.NodeSelector.select(NodeFilter nodeFilter) Selects nodes usingnode filter.NodeSelector.select(Node rootNode, List<CssSelector> selectors) Methods in jodd.lagarto.dom with parameters of type NodeModifier and TypeMethodDescriptionbooleanTest whether a specified node is acceptable in some selection process.booleanvoidAppends child node.voidAppends several child nodes at once.protected voidNode.changeOwnerDocument(Node node, Document ownerDocument) Changes owner document for given node and all its children.protected booleanNodeSelector.filter(List<Node> currentResults, Node node, CssSelector cssSelector, int index) Filter nodes.protected booleanHtmlFosterRules.findFosterNodes(Node node) Finds foster elements.protected ElementHtmlFosterRules.findLastTable(Node node) Finds the last table in stack of open elements.protected voidLagartoDOMBuilderTagVisitor.fixUnclosedTagsUpToMatchingParent(Tag tag, Node matchingParent) Fixes all unclosed tags up to matching parent.protected voidNode.initChildNodes(Node newNode) Initializes child nodes list when needed.voidNode.insertAfter(Node[] newChilds, Node refChild) Inserts several child nodes after referent node.voidNode.insertAfter(Node newChild, Node refChild) Inserts node after provided node.voidNode.insertBefore(Node[] newChilds, Node refChild) Inserts several child nodes before provided node.voidNode.insertBefore(Node newChild, Node refChild) Inserts node before provided node.voidNode.insertChild(Node[] nodes, int index) Inserts several nodes at ones.voidNode.insertChild(Node node, int index) Inserts node at given index.protected booleanHtmlFosterRules.isParentNodeOneOfFosterTableElements(Node parentNode) Returnstrueif parent node is one of the table elements.protected booleanHtmlFosterRules.isTableElement(Node node) Returnstrueif given node is a table element.static Node[]voidNode.removeChild(Node childNode) Removes child node.protected voidLagartoDOMBuilderTagVisitor.removeLastChildNodeIfEmptyText(Node parentNode, boolean closedTag) Removes last child node if contains just empty text.NodeSelector.select(Node rootNode, List<CssSelector> selectors) protected voidNodeSelector.selectAndAdd(Node node, CssSelector cssSelector, List<Node> result) Selects single node for single selector and appends it to the results.protected voidNodeSelector.walk(Node rootNode, CssSelector cssSelector, List<Node> result) Finds nodes in the tree that matches single selector.protected voidNodeSelector.walk(Node rootNode, NodeFilter nodeFilter, List<Node> result) Method parameters in jodd.lagarto.dom with type arguments of type NodeModifier and TypeMethodDescriptionbooleanprotected booleanNodeSelector.filter(List<Node> currentResults, Node node, CssSelector cssSelector, int index) Filter nodes.Node[]Node.filterChildNodes(Predicate<Node> nodePredicate) Filters child nodes.protected voidNodeSelector.processSelectors(List<Node> results, List<CssSelector> selectors) Process selectors and keep adding results.protected voidNodeSelector.selectAndAdd(Node node, CssSelector cssSelector, List<Node> result) Selects single node for single selector and appends it to the results.protected voidNodeSelector.walk(Node rootNode, CssSelector cssSelector, List<Node> result) Finds nodes in the tree that matches single selector.protected voidNodeSelector.walk(Node rootNode, NodeFilter nodeFilter, List<Node> result) protected voidNodeSelector.walkDescendantsIteratively(LinkedList<Node> nodes, CssSelector cssSelector, List<Node> result) Walks over the child notes, maintaining the tree order and not using recursion.protected voidNodeSelector.walkDescendantsIteratively(LinkedList<Node> nodes, CssSelector cssSelector, List<Node> result) Walks over the child notes, maintaining the tree order and not using recursion.Constructors in jodd.lagarto.dom with parameters of type Node -
Uses of Node in jodd.lagarto.dom.render
Methods in jodd.lagarto.dom.render with parameters of type NodeModifier and TypeMethodDescriptionprotected voidLagartoHtmlRendererNodeVisitor.renderAttribute(Node node, Attribute attribute, Appendable appendable) Renders attribute.protected StringLagartoHtmlRendererNodeVisitor.resolveAttributeName(Node node, Attribute attribute) Renders attribute name.protected StringLagartoHtmlRendererNodeVisitor.resolveNodeName(Node node) Renders node name.LagartoHtmlRenderer.toHtml(Node node, Appendable appendable) Renders node to appendable.LagartoHtmlRenderer.toInnerHtml(Node node, Appendable appendable) Renders node children to appendable.