public class DescendantCombinator extends Combinator
Equivalent to element element
selector in CSS.
Element.getParentElement()
selectors
Constructor and Description |
---|
DescendantCombinator(Selector... selectors)
Creates a descendant combinator.
|
DescendantCombinator(Selector selector1,
Selector selector2)
Creates a descendant combinator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
fit(Element element)
Checks whether or not the given element fits this selector.
|
equals, getSpecificity, hashCode
public DescendantCombinator(Selector selector1, Selector selector2)
selector1
- the first child.selector2
- the second child.public DescendantCombinator(Selector... selectors)
selectors
- the selectors chain.java.lang.IllegalArgumentException
- if there is less than two selectors.