Package dev.amp.validator.selector
Class Combinator
- java.lang.Object
-
- com.steadystate.css.parser.Token
-
- dev.amp.validator.css.Token
-
- dev.amp.validator.selector.Selector
-
- dev.amp.validator.selector.Combinator
-
- All Implemented Interfaces:
Serializable
public class Combinator extends Selector
Models a combinator, as described in http://www.w3.org/TR/css3-selectors/#combinators.- Author:
- nhant01, GeorgeLuo
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCombinator.CombinatorTypeTypes of Combinators
-
Constructor Summary
Constructors Constructor Description Combinator(Combinator.CombinatorType combinatorType, Selector left, SimpleSelectorSequence right)
-
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
-
Combinator
public Combinator(@Nonnull Combinator.CombinatorType combinatorType, Selector left, SimpleSelectorSequence right)- Parameters:
combinatorType- combinator enumeration typeleft- the selectorright- the simple selector sequence
-
-
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.
-
-