Class PseudoSelector

  • All Implemented Interfaces:
    Serializable

    public class PseudoSelector
    extends Selector
    A pseudo selector can match either pseudo classes or pseudo elements. http://www.w3.org/TR/css3-selectors/#pseudo-classes http://www.w3.org/TR/css3-selectors/#pseudo-elements. Typically written as ':visited', ':lang(fr)', and '::first-line'. isClass: Pseudo selectors with a single colon (e.g., ':visited') are pseudo class selectors. Selectors with two colons (e.g., '::first-line') are pseudo elements. func: If it's a function style pseudo selector, like lang(fr), then func the function tokens. TODO(powdercloud): parse this in more detail.
    Author:
    nhant01, GeorgeLuo
    See Also:
    Serialized Form
    • Constructor Detail

      • PseudoSelector

        public PseudoSelector​(boolean isClass,
                              @Nonnull
                              String name,
                              @Nonnull
                              List<com.steadystate.css.parser.Token> func)
        Constructor.
        Parameters:
        isClass - pseudo class flag
        name - the name
        func - the function tokens