| org.apache.batik.css.engine.sac.ExtendedSelector
All known Subclasses: org.apache.batik.css.engine.sac.CSSConditionalSelector, org.apache.batik.css.engine.sac.AbstractElementSelector, org.apache.batik.css.engine.sac.AbstractDescendantSelector, org.apache.batik.css.engine.sac.AbstractSiblingSelector,
fillAttributeSet | void fillAttributeSet(Set attrSet)(Code) | | Fills the given set with the attribute names found in this selector.
|
getSpecificity | int getSpecificity()(Code) | | Returns the specificity of this selector.
|
match | boolean match(Element e, String pseudoE)(Code) | | Tests whether this selector matches the given element.
|
setRule | void setRule(org.apache.batik.css.engine.Rule r)(Code) | | Set the rule associated with this selector.
Note: this means that the selector cannot be shared by multiple
rules. That is not the case today anyway.
This was added as part of the performance optimization where I split up
the ruleset in a stylesheet and store rules associated with certain tag names,
rules associated with classnames, etc. I don't want to store the actual -rules-
with these maps, since the rules include the full selector lists; and when
I match rules for an element (the performance sensitive computation) I don't
want to check the full selector LIST for an element, only a particular selector
that is stored in the map. Thus, rather than having multiple maps I'm simply
storing selectors directly in the maps, and having the selectors map back to
the rules.
|
|
|