public interface TypeGraphVisitor
Title: Framework Support Library
Description: An interface defining a visitor, which visits nodes of a type graph during its
traversing (see TypeGraph.traverse(TypeGraphVisitor)
).
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
afterChildrenVisit(TypeGraph node,
int level)
This method is called from
TypeGraph.traverse(TypeGraphVisitor)
method after all the children of the specified node are
traversed together with subtrees. |
boolean |
visit(TypeGraph node,
int level)
This method is called from
TypeGraph.traverse(TypeGraphVisitor)
method once for each traversed node of the
TypeGraph spanning tree. |
boolean visit(TypeGraph node, int level) throws TypeAnalyzerException
TypeGraph.traverse(TypeGraphVisitor)
method once for each traversed node
of the
TypeGraph
spanning tree. The tree is traversed in the
depth-first order.node
- The node which is currently traversed by
TypeGraph.traverse(TypeGraphVisitor)
methodlevel
- The level of the currently traversed node in the spanning
tree of the traversed TypeGraph
.TypeAnalyzerException
- If an error occurred when visiting the graph nodevoid afterChildrenVisit(TypeGraph node, int level) throws TypeAnalyzerException
TypeGraph.traverse(TypeGraphVisitor)
method after all the children of the specified node
are
traversed together with subtrees.node
- The node which children have just been traversed by
TypeGraph.traverse(TypeGraphVisitor)
method.level
- The level in the traversed TypeGraph
spanning
tree of the node, which children have just been traversed.TypeAnalyzerException
- If an error occurred when visiting the graph nodeCopyright © 2015-2024 StreamScape Technologies. All rights reserved.