Class Selector

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<com.globalmentor.model.NameValuePair<Combinator,​java.util.List<SimpleSelector>>>, java.util.Collection<com.globalmentor.model.NameValuePair<Combinator,​java.util.List<SimpleSelector>>>, java.util.List<com.globalmentor.model.NameValuePair<Combinator,​java.util.List<SimpleSelector>>>, java.util.RandomAccess

    public class Selector
    extends java.util.ArrayList<com.globalmentor.model.NameValuePair<Combinator,​java.util.List<SimpleSelector>>>
    A selector of a CSS rule. A selector represents a list of simple selector sequences, each paired with a combinator. The first combinator of which will be ignored.
    Author:
    Garret Wilson
    See Also:
    CSS 3 Selectors, Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      Selector()
      Default constructor.
      Selector​(TypeSelector typeSelector)
      Type selector constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • Selector

        public Selector()
        Default constructor.
      • Selector

        public Selector​(TypeSelector typeSelector)
        Type selector constructor.
        Parameters:
        typeSelector - The type selector to add, or null if this selector should have no type selector.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractCollection<com.globalmentor.model.NameValuePair<Combinator,​java.util.List<SimpleSelector>>>