Package dev.amp.validator.selector
Class SimpleSelectorSequence
- java.lang.Object
-
- com.steadystate.css.parser.Token
-
- dev.amp.validator.css.Token
-
- dev.amp.validator.selector.Selector
-
- dev.amp.validator.selector.SimpleSelectorSequence
-
- All Implemented Interfaces:
Serializable
public class SimpleSelectorSequence extends Selector
Models a simple selector sequence, e.g. '*|foo#id'.- Author:
- nhant01, GeorgeLuo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleSelectorSequence(TypeSelector typeSelector, List<Selector> otherSelectors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SelectorVisitor visitor)voidforEachChild(Consumer<Selector> selector)TokenTypegetTokenType()Overwrite from children class to get token type
-
-
-
Constructor Detail
-
SimpleSelectorSequence
public SimpleSelectorSequence(@Nonnull TypeSelector typeSelector, @Nonnull List<Selector> otherSelectors)- Parameters:
typeSelector- a type selectorotherSelectors- array of selectors
-
-
Method Detail
-
forEachChild
public void forEachChild(Consumer<Selector> selector)
- Specified by:
forEachChildin classSelector- Parameters:
selector- selector function
-
accept
public void accept(SelectorVisitor visitor)
-
getTokenType
public TokenType getTokenType()
Description copied from class:TokenOverwrite from children class to get token type- Specified by:
getTokenTypein classToken- Returns:
- the type of the token.
-
-