public class BfsWalker extends ModelWalker
Modifier | Constructor and Description |
---|---|
protected |
BfsWalker(ModelVisitor visitor)
Constructs walker object with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
goToNextStatement()
Next statement for walking choosing method.
|
void |
processChildren(Statement statement)
Process child statements of the specified one.
|
protected void |
visitModelStatement(Statement statement)
Visits the specified model statement.
|
addVisited, getVisitor, processStatement, start, start, visitNode, visitProcess
protected BfsWalker(ModelVisitor visitor)
visitor
- visitor to be applied to control flow graph modeljava.lang.IllegalArgumentException
- when any argument is null
.protected void visitModelStatement(Statement statement)
ModelWalker
visitModelStatement
in class ModelWalker
statement
- The statement to be visited,public void processChildren(Statement statement)
ModelWalker
processChildren
in class ModelWalker
statement
- Statement those children are to be processed.public void goToNextStatement()
ModelWalker
goToNextStatement
in class ModelWalker