public class AdjacentSiblingCombinator extends Combinator
Equivalent to element+element
selector in CSS.
Element.getParentElement()
selectors
Constructor and Description |
---|
AdjacentSiblingCombinator(Selector... selectors)
Creates an adjacent sibling combinator.
|
AdjacentSiblingCombinator(Selector selector1,
Selector selector2)
Creates an adjacent sibling 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 AdjacentSiblingCombinator(Selector selector1, Selector selector2)
selector1
- the first child.selector2
- the second child.public AdjacentSiblingCombinator(Selector... selectors)
selectors
- the list of selectors.java.lang.IllegalArgumentException
- if there is less than two selectors.