public interface Selector extends Rule<Selector.SelectorPart>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Selector.Combinator
Combinator for simple selectors
|
static interface |
Selector.ElementAttribute
Element attribute
|
static interface |
Selector.ElementClass
Element class
|
static interface |
Selector.ElementDOM |
static interface |
Selector.ElementID
Element id
|
static interface |
Selector.ElementName
Element name
|
static class |
Selector.Operator
Operator for SelectorPart attributes
|
static class |
Selector.PseudoDeclaration
A pseudo class or element specification
|
static interface |
Selector.PseudoPage
Pseudo page
|
static interface |
Selector.SelectorPart
Interface for handling items
|
| Modifier and Type | Method and Description |
|---|---|
void |
computeSpecificity(CombinedSelector.Specificity spec)
Modifies specificity according to CSS standard
|
String |
getClassName()
Name of CSS class which is affected by this selector
|
Selector.Combinator |
getCombinator()
Returns combinator of this and other simple selector
|
String |
getElementName()
Name of HTML element which is affected by this selector
|
String |
getIDName()
ID of CSS item which is affected by this selector
|
Selector.PseudoDeclaration |
getPseudoElement()
Reads the pseudoelement of the selector
|
boolean |
matches(Element e)
Matches simple selector against DOM element
|
boolean |
matches(Element e,
MatchCondition cond)
Matches simple selector against DOM element with an additional condition
|
Selector |
setCombinator(Selector.Combinator combinator)
Sets combinator
|
asList, replaceAll, unlockSelector.Combinator getCombinator()
Selector setCombinator(Selector.Combinator combinator)
combinator - Combinator between this and other selectorString getClassName()
String getIDName()
String getElementName()
Selector.PseudoDeclaration getPseudoElement()
null if no pseudo-element is specifiedvoid computeSpecificity(CombinedSelector.Specificity spec)
spec - Specificity to be modifiedboolean matches(Element e)
e - Elementtrue in case of matchboolean matches(Element e, MatchCondition cond)
e - Elementcond - An additional condition to be appliedtrue in case of matchCopyright © 2014. All rights reserved.