Interface VisitorFunction

Function called while visiting document nodes with a Walker.

Hierarchy

  • VisitorFunction

Callable

  • Called once during each stage of visiting a node. The visitation process will skip any nodes that this method inserts, as well as nodes that are deleted if they have not yet been visited.

    Parameters

    • walker: Walker

      The walker that is being used to visit the node.

    • node: Node

      The node being visited.

    • stage: VisitStage

      A descriptor of the stage of the visitation process: whether the function is being called for a visit before or after entering the node or one of its fields.

    • field: number

      The index of the node field referred to by the stage, or -1 if the stage refers to the node itself.

    Returns void

This API is still under development and is subject to change. Copyright © Math I Can Do Solutions Incorporated and/or its licensors.