/** * Returns a representation of the selector. */ public String toString() { return getAncestorSelector() + " " + getSimpleSelector(); } }
/** * Returns a representation of the selector. */ public String toString() { return getAncestorSelector() + " " + getSimpleSelector(); } }
/** * Returns a representation of the selector. */ public String toString() { return getAncestorSelector() + " " + getSimpleSelector(); } }
/** * Returns a representation of the selector. */ public String toString() { return getAncestorSelector() + " " + getSimpleSelector(); } }
/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { ExtendedSelector p = (ExtendedSelector)getAncestorSelector(); for (Node n = e.getParentNode(); n != null; n = n.getParentNode()) { if (n.getNodeType() == Node.ELEMENT_NODE && p.match((Element)n, null)) { return ((ExtendedSelector)getSimpleSelector()).match(e, pseudoE); } } return false; }
/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { ExtendedSelector p = (ExtendedSelector)getAncestorSelector(); if (!((ExtendedSelector)getSimpleSelector()).match(e,pseudoE)) return false; for (Node n = e.getParentNode(); n != null; n = n.getParentNode()) { if (n.getNodeType() == Node.ELEMENT_NODE && p.match((Element)n, null)) { return true; } } return false; }
/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { ExtendedSelector p = (ExtendedSelector)getAncestorSelector(); if (!((ExtendedSelector)getSimpleSelector()).match(e,pseudoE)) return false; for (Node n = e.getParentNode(); n != null; n = n.getParentNode()) { if (n.getNodeType() == Node.ELEMENT_NODE && p.match((Element)n, null)) { return true; } } return false; }
/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { ExtendedSelector p = (ExtendedSelector)getAncestorSelector(); if (!((ExtendedSelector)getSimpleSelector()).match(e,pseudoE)) return false; for (Node n = e.getParentNode(); n != null; n = n.getParentNode()) { if (n.getNodeType() == Node.ELEMENT_NODE && p.match((Element)n, null)) { return true; } } return false; }