Package com.github.javaparser.ast
Class NodeList.NodeListIterator
- java.lang.Object
-
- com.github.javaparser.ast.NodeList.NodeListIterator
-
- All Implemented Interfaces:
Iterator<N>,ListIterator<N>
protected class NodeList.NodeListIterator extends Object implements ListIterator<N>
-
-
Constructor Summary
Constructors Constructor Description NodeListIterator(List<N> list)NodeListIterator(List<N> list, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(N n)voidforEachRemaining(Consumer<? super N> action)booleanhasNext()booleanhasPrevious()Nnext()intnextIndex()Nprevious()intpreviousIndex()voidremove()voidset(N n)
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public N next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceListIterator<N extends Node>
-
previous
public N previous()
- Specified by:
previousin interfaceListIterator<N extends Node>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfaceListIterator<N extends Node>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfaceListIterator<N extends Node>
-
remove
public void remove()
-
set
public void set(N n)
- Specified by:
setin interfaceListIterator<N extends Node>
-
add
public void add(N n)
- Specified by:
addin interfaceListIterator<N extends Node>
-
-