Class Selector
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<SimpleSelectorSequence>
-
- org.zkoss.zats.common.select.impl.Selector
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<SimpleSelectorSequence>,Collection<SimpleSelectorSequence>,List<SimpleSelectorSequence>,RandomAccess
public class Selector extends ArrayList<SimpleSelectorSequence>
The model representing a selector.- Since:
- 6.0.0
- Author:
- simonpai
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSelector.Combinator
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description Selector(int selectorIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachCombinator(Selector.Combinator combinator)Add combinator to the last simple selector sequenceSelector.CombinatorgetCombinator(int index)Return the i-th combinatorintgetSelectorIndex()Return the index of this selector in a multiple selector sequence.StringtoString()-
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
-
-
-
-
Method Detail
-
attachCombinator
public void attachCombinator(Selector.Combinator combinator)
Add combinator to the last simple selector sequence
-
getSelectorIndex
public int getSelectorIndex()
Return the index of this selector in a multiple selector sequence.
-
getCombinator
public Selector.Combinator getCombinator(int index)
Return the i-th combinator
-
toString
public String toString()
- Overrides:
toStringin classAbstractCollection<SimpleSelectorSequence>
-
-