com.lowagie.text.pdf.hyphenation

Class TernaryTree.Iterator

public class TernaryTree.Iterator extends Object implements Enumeration

Nested Class Summary
classTernaryTree.Iterator.Item
Field Summary
intcur
current node index
Stringcurkey
current key
StringBufferks
key stack implemented with a StringBuffer
Stackns
Node stack
Constructor Summary
Iterator()
Method Summary
chargetValue()
booleanhasMoreElements()
ObjectnextElement()
voidrewind()
intrun()
traverse the tree to find next key
intup()
traverse upwards

Field Detail

cur

int cur
current node index

curkey

String curkey
current key

ks

StringBuffer ks
key stack implemented with a StringBuffer

ns

Stack ns
Node stack

Constructor Detail

Iterator

public Iterator()

Method Detail

getValue

public char getValue()

hasMoreElements

public boolean hasMoreElements()

nextElement

public Object nextElement()

rewind

public void rewind()

run

private int run()
traverse the tree to find next key

up

private int up()
traverse upwards