Package dev.amp.validator.selector
Class IdSelector
- java.lang.Object
-
- com.steadystate.css.parser.Token
-
- dev.amp.validator.css.Token
-
- dev.amp.validator.selector.Selector
-
- dev.amp.validator.selector.IdSelector
-
- All Implemented Interfaces:
Serializable
public class IdSelector extends Selector
An attribute selector matches document nodes based on their attributes. http://www.w3.org/TR/css3-selectors/#attribute-selectors Typically written as '[foo=bar]'.- Author:
- nhant01, GeorgeLuo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdSelector(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SelectorVisitor visitor)visits a selectorvoidforEachChild(Consumer<Selector> selector)TokenTypegetTokenType()get token typeStringtoString()generates a string representation
-
-
-
Constructor Detail
-
IdSelector
public IdSelector(@Nonnull String value)- Parameters:
value- to set to
-
-
Method Detail
-
forEachChild
public void forEachChild(Consumer<Selector> selector)
- Specified by:
forEachChildin classSelector- Parameters:
selector- selector function
-
accept
public void accept(@Nonnull SelectorVisitor visitor)visits a selector
-
toString
public String toString()
generates a string representation
-
getTokenType
public TokenType getTokenType()
get token type- Specified by:
getTokenTypein classToken- Returns:
- the token type
-
-