Record Class Selectors.Descendant
java.lang.Object
java.lang.Record
org.eclipse.e4.ui.css.core.impl.engine.selector.Selectors.Descendant
- All Implemented Interfaces:
Selectors.Selector
- Enclosing class:
Selectors
public static record Selectors.Descendant(Selectors.Selector ancestor, Selectors.Selector descendant)
extends Record
implements Selectors.Selector
ancestor descendant — descendant combinator.-
Constructor Summary
ConstructorsConstructorDescriptionDescendant(Selectors.Selector ancestor, Selectors.Selector descendant) Creates an instance of aDescendantrecord class. -
Method Summary
Modifier and TypeMethodDescriptionancestor()Returns the value of theancestorrecord component.Returns the value of thedescendantrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intCSS specificity contribution of this selector.text()Best-effort textual reproduction of the selector.toString()Returns a string representation of this record class.
-
Constructor Details
-
Descendant
Creates an instance of aDescendantrecord class.- Parameters:
ancestor- the value for theancestorrecord componentdescendant- the value for thedescendantrecord component
-
-
Method Details
-
specificity
public int specificity()Description copied from interface:Selectors.SelectorCSS specificity contribution of this selector.- Specified by:
specificityin interfaceSelectors.Selector
-
text
Description copied from interface:Selectors.SelectorBest-effort textual reproduction of the selector.- Specified by:
textin interfaceSelectors.Selector
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
ancestor
Returns the value of theancestorrecord component.- Returns:
- the value of the
ancestorrecord component
-
descendant
Returns the value of thedescendantrecord component.- Returns:
- the value of the
descendantrecord component
-