Package org.apache.fop.hyphenation
Class TernaryTree.Iterator
java.lang.Object
org.apache.fop.hyphenation.TernaryTree.Iterator
- All Implemented Interfaces:
Enumeration
- Enclosing class:
- TernaryTree
an iterator
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
-
Field Details
-
cur
int curcurrent node index -
curkey
String curkeycurrent key -
ns
Stack nsNode stack -
ks
StringBuffer kskey stack implemented with a StringBuffer
-
-
Constructor Details
-
Iterator
public Iterator()default constructor
-
-
Method Details
-
rewind
public void rewind()rewind iterator -
nextElement
- Specified by:
nextElement
in interfaceEnumeration
- Returns:
- next element
-
getValue
public char getValue()- Returns:
- value
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration
- Returns:
- true if more elements
-
up
private int up()traverse upwards -
run
private int run()traverse the tree to find next key
-