Class 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 Detail

      • SimpleSelectorSequence

        public SimpleSelectorSequence​(@Nonnull
                                      TypeSelector typeSelector,
                                      @Nonnull
                                      List<Selector> otherSelectors)
        Parameters:
        typeSelector - a type selector
        otherSelectors - array of selectors
    • Method Detail

      • accept

        public void accept​(SelectorVisitor visitor)
        Specified by:
        accept in class Selector
        Parameters:
        visitor - a SelectorVisitor instance
      • getTokenType

        public TokenType getTokenType()
        Description copied from class: Token
        Overwrite from children class to get token type
        Specified by:
        getTokenType in class Token
        Returns:
        the type of the token.