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.SimplePseudoClassSelector
A "simple class selector" matches an element based on the value of its
"pseudo class" attribute.
- Author:
- Werner Randelshofer
-
Constructor Summary
ConstructorsConstructorDescriptionSimplePseudoClassSelector(@Nullable SourceLocator sourceLocator, String pseudoClass) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()<T> @Nullable Tmatch(SelectorModel<T> model, @Nullable T element) Returns the matching element.voidproduceTokens(Consumer<CssToken> consumer) Produces tokens for the subtree starting at this tree node.toString()Methods 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
-
SimplePseudoClassSelector
-
-
Method Details
-
toString
-
match
Description copied from class:SelectorReturns the matching element. -
produceTokens
Description copied from class:AbstractSyntaxTreeProduces tokens for the subtree starting at this tree node.- Overrides:
produceTokensin classAbstractSyntaxTree- Parameters:
consumer- a consumer for the tokens
-
equals
-
hashCode
public int hashCode()
-