/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { Node n = e.getParentNode(); if (n != null && n.getNodeType() == Node.ELEMENT_NODE) { return ((ExtendedSelector)getAncestorSelector()).match((Element)n, null) && ((ExtendedSelector)getSimpleSelector()).match(e, pseudoE); } return false; }
/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { Node n = e.getParentNode(); if (n != null && n.getNodeType() == Node.ELEMENT_NODE) { return ((ExtendedSelector)getAncestorSelector()).match((Element)n, null) && ((ExtendedSelector)getSimpleSelector()).match(e, pseudoE); } return false; }
/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { Node n = e.getParentNode(); if (n != null && n.getNodeType() == Node.ELEMENT_NODE) { return ((ExtendedSelector)getAncestorSelector()).match((Element)n, null) && ((ExtendedSelector)getSimpleSelector()).match(e, pseudoE); } return false; }
/** * Tests whether this selector matches the given element. */ public boolean match(Element e, String pseudoE) { Node n = e.getParentNode(); if (n != null && n.getNodeType() == Node.ELEMENT_NODE) { return ((ExtendedSelector)getAncestorSelector()).match((Element)n, null) && ((ExtendedSelector)getSimpleSelector()).match(e, pseudoE); } return false; }
/** * Returns a representation of the selector. */ public String toString() { SimpleSelector s = getSimpleSelector(); if (s.getSelectorType() == SAC_PSEUDO_ELEMENT_SELECTOR) { return String.valueOf( getAncestorSelector() ) + s; } return getAncestorSelector() + " > " + s; } }
/** * Returns a representation of the selector. */ public String toString() { SimpleSelector s = getSimpleSelector(); if (s.getSelectorType() == SAC_PSEUDO_ELEMENT_SELECTOR) { return String.valueOf( getAncestorSelector() ) + s; } return getAncestorSelector() + " > " + s; } }
/** * Returns a representation of the selector. */ public String toString() { SimpleSelector s = getSimpleSelector(); if (s.getSelectorType() == SAC_PSEUDO_ELEMENT_SELECTOR) { return String.valueOf( getAncestorSelector() ) + s; } return getAncestorSelector() + " > " + s; } }
/** * Fills the given set with the attribute names found in this selector. */ public void fillAttributeSet(Set attrSet) { ((ExtendedSelector)getAncestorSelector()).fillAttributeSet(attrSet); ((ExtendedSelector)getSimpleSelector()).fillAttributeSet(attrSet); }
/** * Fills the given set with the attribute names found in this selector. */ public void fillAttributeSet(Set attrSet) { ((ExtendedSelector)getAncestorSelector()).fillAttributeSet(attrSet); ((ExtendedSelector)getSimpleSelector()).fillAttributeSet(attrSet); }
/** * Fills the given set with the attribute names found in this selector. */ public void fillAttributeSet(Set attrSet) { ((ExtendedSelector)getAncestorSelector()).fillAttributeSet(attrSet); ((ExtendedSelector)getSimpleSelector()).fillAttributeSet(attrSet); }
/** * Returns a representation of the selector. */ public String toString() { SimpleSelector s = getSimpleSelector(); if (s.getSelectorType() == SAC_PSEUDO_ELEMENT_SELECTOR) { return "" + getAncestorSelector() + s; } return getAncestorSelector() + " > " + s; } }
/** * Fills the given set with the attribute names found in this selector. */ public void fillAttributeSet(Set attrSet) { ((ExtendedSelector)getAncestorSelector()).fillAttributeSet(attrSet); ((ExtendedSelector)getSimpleSelector()).fillAttributeSet(attrSet); }