Class TernaryTree.Iterator

java.lang.Object
org.apache.fop.hyphenation.TernaryTree.Iterator
All Implemented Interfaces:
Enumeration
Enclosing class:
TernaryTree

public class TernaryTree.Iterator extends Object implements Enumeration
an iterator
  • Field Details

    • cur

      int cur
      current node index
    • curkey

      String curkey
      current key
    • ns

      Stack ns
      Node stack
    • ks

      key stack implemented with a StringBuffer
  • Constructor Details

    • Iterator

      public Iterator()
      default constructor
  • Method Details

    • rewind

      public void rewind()
      rewind iterator
    • nextElement

      public Object nextElement()
      Specified by:
      nextElement in interface Enumeration
      Returns:
      next element
    • getValue

      public char getValue()
      Returns:
      value
    • hasMoreElements

      public boolean hasMoreElements()
      Specified by:
      hasMoreElements in interface Enumeration
      Returns:
      true if more elements
    • up

      private int up()
      traverse upwards
    • run

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