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 void
add(int index, Selector element)
boolean
add(Selector e)
boolean
addAll(int index, java.util.Collection<? extends Selector> c)
boolean
addAll(java.util.Collection<? extends Selector> c)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
Selector
get(int index)
java.util.List<Selector>
getSelectors()
int
indexOf(java.lang.Object o)
boolean
isEmpty()
java.util.Iterator<Selector>
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<Selector>
listIterator()
java.util.ListIterator<Selector>
listIterator(int index)
Selector
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(java.util.Collection<?> c)
Selector
set(int index, Selector element)
int
size()
java.util.List<Selector>
subList(int fromIndex, int toIndex)
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] a)
java.lang.String
toString()
-
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:
toString
in 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:
addAll
in 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:
set
in interfacejava.util.List<Selector>
-
add
public void add(int index, Selector element)
- Specified by:
add
in interfacejava.util.List<Selector>
-
remove
public Selector remove(int index)
- Specified by:
remove
in interfacejava.util.List<Selector>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<Selector>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<Selector>
-
listIterator
public java.util.ListIterator<Selector> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<Selector>
-
listIterator
public java.util.ListIterator<Selector> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<Selector>
-
-