Class VisitorList<N extends Node>
java.lang.Object
com.github.javaparser.utils.VisitorList<N>
- All Implemented Interfaces:
Iterable<N>, Collection<N>, List<N>, SequencedCollection<N>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final GenericVisitor<Boolean, Visitable> protected final GenericVisitor<Integer, Void> protected List<VisitorList<N>.com.github.javaparser.utils.VisitorList.EqualsHashcodeOverridingFacade> -
Constructor Summary
ConstructorsConstructorDescriptionVisitorList(GenericVisitor<Integer, Void> hashcodeVisitor, GenericVisitor<Boolean, Visitable> equalsVisitor) Pass the visitors to use for equals and hashcode. -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends N> col) booleanaddAll(Collection<? extends N> col) voidclear()booleanbooleancontainsAll(Collection<?> col) get(int index) intbooleanisEmpty()iterator()intlastIndexOf(Object elem) listIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> col) booleanretainAll(Collection<?> col) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] arr) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Field Details
-
innerList
protected List<VisitorList<N extends Node>.com.github.javaparser.utils.VisitorList.EqualsHashcodeOverridingFacade> innerList -
hashcodeVisitor
-
equalsVisitor
-
-
Constructor Details
-
VisitorList
public VisitorList(GenericVisitor<Integer, Void> hashcodeVisitor, GenericVisitor<Boolean, Visitable> equalsVisitor) Pass the visitors to use for equals and hashcode.
-
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
clear
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<N extends Node>- Specified by:
containsAllin interfaceList<N extends Node>
-
get
-
indexOf
-
isEmpty
-
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<N extends Node>
-
listIterator
- Specified by:
listIteratorin interfaceList<N extends Node>
-
listIterator
- Specified by:
listIteratorin interfaceList<N extends Node>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
-
subList
-
toArray
-
toArray
-
toString
-