Interface Visitor<N>

Type Parameters:
N - The type of node being visited.

public interface Visitor<N>
Represents a visitor that can visit each node during traversal (e.g. visiting every node in a tree).
Author:
Garret Wilson
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    visit(N node)
    Visits the given node.
  • Method Details

    • visit

      boolean visit(N node)
      Visits the given node.
      Parameters:
      node - The node being visited.
      Returns:
      true if traversal should continue to other nodes.