/** * Returns the CSS parent node of the given node. */ public static Node getCSSParentNode(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSParentNode(); } return n.getParentNode(); }
/** * Returns the CSS first child node of the given node. */ protected static Node getCSSFirstChild(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSFirstChild(); } return n.getFirstChild(); }
/** * Returns the CSS next sibling node of the given node. */ protected static Node getCSSNextSibling(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSNextSibling(); } return n.getNextSibling(); }
/** * Returns the CSS previous sibling node of the given node. */ protected static Node getCSSPreviousSibling(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSPreviousSibling(); } return n.getPreviousSibling(); }
/** * Returns the CSS previous sibling node of the given node. */ protected static Node getCSSPreviousSibling(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSPreviousSibling(); } return n.getPreviousSibling(); }
/** * Returns the CSS parent node of the given node. */ public static Node getCSSParentNode(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSParentNode(); } return n.getParentNode(); }
/** * Returns the CSS next sibling node of the given node. */ protected static Node getCSSNextSibling(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSNextSibling(); } return n.getNextSibling(); }
/** * Returns the CSS first child node of the given node. */ protected static Node getCSSFirstChild(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSFirstChild(); } return n.getFirstChild(); }
/** * Returns the CSS previous sibling node of the given node. */ protected static Node getCSSPreviousSibling(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSPreviousSibling(); } return n.getPreviousSibling(); }
/** * Returns the CSS parent node of the given node. */ public static Node getCSSParentNode(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSParentNode(); } return n.getParentNode(); }
/** * Returns the CSS next sibling node of the given node. */ protected static Node getCSSNextSibling(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSNextSibling(); } return n.getNextSibling(); }
/** * Returns the CSS first child node of the given node. */ protected static Node getCSSFirstChild(Node n) { if (n instanceof CSSNavigableNode) { return ((CSSNavigableNode) n).getCSSFirstChild(); } return n.getFirstChild(); }
n = ((CSSNavigableNode) n).getCSSParentNode(); } else { n = n.getParentNode();
n = ((CSSNavigableNode) n).getCSSParentNode(); } else { n = n.getParentNode();
n = ((CSSNavigableNode) n).getCSSParentNode(); } else { n = n.getParentNode();