Class VisitorList<N extends Node>
java.lang.Object
com.github.javaparser.utils.VisitorList<N>
- All Implemented Interfaces:
Iterable<N>, Collection<N>, List<N>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final GenericVisitor<Boolean, Visitable> protected final GenericVisitor<Integer, Void> protected List<VisitorList<N>.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, streamMethods inherited from interface List
equals, hashCode, replaceAll, sort, spliterator
-
Field Details
-
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
-