Class SelectorListImpl
- java.lang.Object
-
- org.htmlunit.cssparser.parser.AbstractLocatable
-
- org.htmlunit.cssparser.parser.selector.SelectorListImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<Selector>,java.util.Collection<Selector>,java.util.List<Selector>,Locatable,SelectorList
public class SelectorListImpl extends AbstractLocatable implements SelectorList, java.io.Serializable
Implementation of SelectorList.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Selector>selectors_
-
Constructor Summary
Constructors Constructor Description SelectorListImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Selector element)booleanadd(Selector e)booleanaddAll(int index, java.util.Collection<? extends Selector> c)booleanaddAll(java.util.Collection<? extends Selector> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)Selectorget(int index)java.util.List<Selector>getSelectors()intindexOf(java.lang.Object o)booleanisEmpty()java.util.Iterator<Selector>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<Selector>listIterator()java.util.ListIterator<Selector>listIterator(int index)Selectorremove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)Selectorset(int index, Selector element)intsize()java.util.List<Selector>subList(int fromIndex, int toIndex)java.lang.Object[]toArray()<T> T[]toArray(T[] a)java.lang.StringtoString()-
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
-
-
-
Field Detail
-
selectors_
private final java.util.List<Selector> selectors_
-
-
Method Detail
-
getSelectors
public java.util.List<Selector> getSelectors()
- Returns:
- the list of selectors.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public java.util.Iterator<Selector> iterator()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(Selector e)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
addAll
public boolean addAll(java.util.Collection<? extends Selector> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends Selector> c)- Specified by:
addAllin interfacejava.util.List<Selector>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
clear
public void clear()
-
set
public Selector set(int index, Selector element)
- Specified by:
setin interfacejava.util.List<Selector>
-
add
public void add(int index, Selector element)- Specified by:
addin interfacejava.util.List<Selector>
-
remove
public Selector remove(int index)
- Specified by:
removein interfacejava.util.List<Selector>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOfin interfacejava.util.List<Selector>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<Selector>
-
listIterator
public java.util.ListIterator<Selector> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<Selector>
-
listIterator
public java.util.ListIterator<Selector> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<Selector>
-
-