java.lang.Object
org.jhotdraw8.css.ast.AbstractSyntaxTree
org.jhotdraw8.css.ast.Selector
org.jhotdraw8.css.ast.SimpleSelector
org.jhotdraw8.css.ast.AbstractAttributeSelector
org.jhotdraw8.css.ast.DashMatchSelector
A "dash match selector"
|= matches an element if the element has an
attribute with the specified name and its value is either exactly the
specified substring or its value begins with the specified substring
immediately followed by a dash '-' character. This is primarily intended to
allow language subcode matches.- Author:
- Werner Randelshofer
-
Constructor Summary
ConstructorsConstructorDescriptionDashMatchSelector(@Nullable SourceLocator sourceLocator, @Nullable String namespace, @NonNull String attributeName, @NonNull String substring) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()protected <T> @Nullable Tmatch(@NonNull SelectorModel<T> model, @NonNull T element) Returns the matching element.voidproduceTokens(@NonNull Consumer<CssToken> consumer) Produces tokens for the subtree starting at this tree node.Methods inherited from class org.jhotdraw8.css.ast.AbstractAttributeSelector
getSpecificityMethods inherited from class org.jhotdraw8.css.ast.Selector
matches, matchesOnlyOnASpecificTypeMethods inherited from class org.jhotdraw8.css.ast.AbstractSyntaxTree
getSourceLocator
-
Constructor Details
-
DashMatchSelector
-
-
Method Details
-
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()
-