Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sourceforge.arbaro.tree
Interface TreeTraversal

All Known Implementing Classes:
  DefaultTreeTraversal, LeafCounter, StemCounter

    public interface TreeTraversal

An interface, for traversal through the stems and leaves of a tree. (Compare Hierarchical Visitor Pattern)

Method Summary
`boolean` | `enterStem(Stem stem)` going into a Stem
`boolean` | `enterTree(Tree tree)` going into a Tree
`boolean` | `leaveStem(Stem stem)` coming out of a Stem
`boolean` | `leaveTree(Tree tree)` coming out of a Tree
`boolean` | `visitLeaf(Leaf leaf)` passing a Leaf

Method Detail

### enterTree

    boolean enterTree(Tree tree)

  going into a Tree

  Parameters:
    `tree` -
  Returns:
    when false, stop traversal at this level

### leaveTree

    boolean leaveTree(Tree tree)

  coming out of a Tree

  Parameters:
    `tree` -
  Returns:
    when false, stop traversal at this level

### enterStem

    boolean enterStem(Stem stem)

  going into a Stem

  Parameters:
    `stem` -
  Returns:
    when false, stop traversal at this level

### leaveStem

    boolean leaveStem(Stem stem)

  coming out of a Stem

  Parameters:
    `stem` -
  Returns:
    when false, stop traversal at this level

### visitLeaf

    boolean visitLeaf(Leaf leaf)

  passing a Leaf

  Parameters:
    `leaf` -
  Returns:
    when false, stop traversal at this level

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD