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 void
add(N n)
void
forEachRemaining(Consumer<? super N> action)
boolean
hasNext()
boolean
hasPrevious()
N
next()
int
nextIndex()
N
previous()
int
previousIndex()
void
remove()
void
set(N n)
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public N next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<N extends Node>
-
previous
public N previous()
- Specified by:
previous
in interfaceListIterator<N extends Node>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfaceListIterator<N extends Node>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<N extends Node>
-
remove
public void remove()
-
set
public void set(N n)
- Specified by:
set
in interfaceListIterator<N extends Node>
-
add
public void add(N n)
- Specified by:
add
in interfaceListIterator<N extends Node>
-
-