Class TraceVisitor

java.lang.Object
com.yahoo.yolean.trace.TraceVisitor

public abstract class TraceVisitor extends Object

This class is an abstract visitor of TraceNode. See TraceNode.accept(TraceVisitor).

Since:
5.1.15
Author:
bratseth
  • Constructor Details

    • TraceVisitor

      public TraceVisitor()
  • Method Details

    • visit

      public abstract void visit(TraceNode node)

      Visits a TraceNode. Called by TraceNode.accept(TraceVisitor), before visiting its children.

      Parameters:
      node - the TraceNode being visited
      See Also:
    • entering

      public void entering(TraceNode node)

      Enters a TraceNode. This method is called after visit(TraceNode), but before visiting its children. Note that this method is NOT called if a TraceNode has zero children.

      The default implementation of this method does nothing.

      Parameters:
      node - the TraceNode being entered
      See Also:
    • leaving

      public void leaving(TraceNode node)

      Leaves a TraceNode. This method is called after entering(TraceNode), and after visiting its children. Note that this method is NOT called if a TraceNode has zero children.

      The default implementation of this method does nothing.

      Parameters:
      node - the TraceNode being left