Package com.yahoo.yolean.trace
Class TraceVisitor
- java.lang.Object
-
- com.yahoo.yolean.trace.TraceVisitor
-
public abstract class TraceVisitor extends java.lang.Object
This class is an abstract visitor of
TraceNode
. SeeTraceNode.accept(TraceVisitor)
.- Since:
- 5.1.15
- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description TraceVisitor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
entering(TraceNode node)
Enters aTraceNode
.void
leaving(TraceNode node)
Leaves aTraceNode
.abstract void
visit(TraceNode node)
Visits aTraceNode
.
-
-
-
Method Detail
-
visit
public abstract void visit(TraceNode node)
Visits a
TraceNode
. Called byTraceNode.accept(TraceVisitor)
, before visiting its children.- Parameters:
node
- theTraceNode
being visited- See Also:
TraceNode.accept(TraceVisitor)
-
entering
public void entering(TraceNode node)
Enters a
TraceNode
. This method is called aftervisit(TraceNode)
, but before visiting its children. Note that this method is NOT called if aTraceNode
has zero children.The default implementation of this method does nothing.
- Parameters:
node
- theTraceNode
being entered- See Also:
leaving(TraceNode)
-
leaving
public void leaving(TraceNode node)
Leaves a
TraceNode
. This method is called afterentering(TraceNode)
, and after visiting its children. Note that this method is NOT called if aTraceNode
has zero children.The default implementation of this method does nothing.
- Parameters:
node
- theTraceNode
being left
-
-