| Modifier and Type | Field and Description |
|---|---|
protected ABox |
abox
ABox where literals are stoired
|
protected int |
index
Last returned index
|
protected List<aterm.ATermAppl> |
nodeList
List of node names
|
protected int |
start
Index where iterator starts (0 be default)
|
protected int |
stop
Index where iterator stops (size of list by default)
|
| Modifier | Constructor and Description |
|---|---|
|
LiteralIterator(ABox abox)
Create an iterator over all the individuals in the ABox
|
protected |
LiteralIterator(ABox abox,
boolean findNext)
Create an iterator over all the individuals in the ABox
but do not automatically find the first individual if
findNext parameter is false
|
|
LiteralIterator(ABox abox,
int start,
int stop)
Create a limited iterator over the individuals in the ABox
that only covers the individuals whose index in nodeList
is between start ans stop indices.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
findNext() |
int |
getIndex() |
boolean |
hasNext() |
void |
jump(int i) |
Literal |
next() |
void |
remove() |
void |
reset() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected ABox abox
protected List<aterm.ATermAppl> nodeList
protected int index
protected int start
protected int stop
public LiteralIterator(ABox abox)
protected LiteralIterator(ABox abox, boolean findNext)
abox - findNext - public LiteralIterator(ABox abox, int start, int stop)
abox - start - stop - Copyright © 2019. All rights reserved.