java.lang.Object
org.jhotdraw8.css.ast.AbstractSyntaxTree
org.jhotdraw8.css.ast.Selector
org.jhotdraw8.css.ast.SimpleSelector
org.jhotdraw8.css.ast.PseudoClassSelector
org.jhotdraw8.css.ast.FunctionPseudoClassSelector
org.jhotdraw8.css.ast.NegationPseudoClassSelector
Implements the negation pseudo-class selector.
The negation pseudo-class, :not(X), is a functional notation taking a
simple selector (excluding the negation pseudo-class itself) as an argument.
It represents an element that is not represented by its argument.
Negations may not be nested; :not(:not(...)) is invalid.
Note also that since pseudo-elements are not simple selectors,
they are not a valid argument to :not().
-
Constructor Summary
ConstructorsConstructorDescriptionNegationPseudoClassSelector(@Nullable SourceLocator sourceLocator, @NonNull String functionIdentifier, @NonNull SimpleSelector selector) -
Method Summary
Methods inherited from class org.jhotdraw8.css.ast.FunctionPseudoClassSelector
getFunctionIdentifier, produceTokensMethods inherited from class org.jhotdraw8.css.ast.PseudoClassSelector
getSpecificityMethods inherited from class org.jhotdraw8.css.ast.Selector
matches, matchesOnlyOnASpecificTypeMethods inherited from class org.jhotdraw8.css.ast.AbstractSyntaxTree
getSourceLocator
-
Constructor Details
-
NegationPseudoClassSelector
public NegationPseudoClassSelector(@Nullable SourceLocator sourceLocator, @NonNull String functionIdentifier, @NonNull SimpleSelector selector)
-
-
Method Details
-
toString
- Overrides:
toStringin classFunctionPseudoClassSelector
-
match
Description copied from class:SelectorReturns the matching element.- Overrides:
matchin classFunctionPseudoClassSelector- Type Parameters:
T- element type- Parameters:
model- The helper is used to access properties of the element and parent or sibling elements in the document.element- the element- Returns:
- the matching element or null
-
equals
- Overrides:
equalsin classFunctionPseudoClassSelector
-
hashCode
public int hashCode()- Overrides:
hashCodein classFunctionPseudoClassSelector
-