convertNodeListToPosList(beginNode);
posIter = posList.listIterator();
}
private void convertNodeListToPosList(Node beginNode) {
Node node = beginNode.getNext();
Pos prevPos = new Pos("", PosId.UNKNOWN, 0, 0, 0);
while (!isEosNode(node)) {
Pos curPos = new Pos(node, prevPos.getEndOffset());
if (curPos.getPosId() == PosId.PREANALYSIS) {
posList.addAll(getAnalyzedPoses(curPos));
} else {
posList.add(curPos);
}
prevPos = curPos;
node = node.getNext();
}
}