Modifier and Type | Method and Description |
---|---|
void |
addVisited(java.util.Collection<java.lang.String> visitedIds)
Add statement identifiers from the specified collection to the storage of identifiers
for statements that are already visited by this walker.
|
ModelVisitor |
getVisitor()
Returns the model visitor.
|
protected abstract void |
goToNextStatement()
Next statement for walking choosing method.
|
protected abstract void |
processChildren(Statement statement)
Process child statements of the specified one.
|
protected boolean |
processStatement(Statement node)
Processes the specified model statement.
|
void |
start(Model model)
Starts walking the specified model.
|
void |
start(Statement statement)
Starts walking the specified statement.
|
protected abstract void |
visitModelStatement(Statement statement)
Visits the specified model statement.
|
void |
visitNode(Statement statement)
Visits the specified node.
|
protected void |
visitProcess(ModuleProcess node)
Visits the specified process.
|
public ModelVisitor getVisitor()
public void addVisited(java.util.Collection<java.lang.String> visitedIds)
visitedIds
- Statement identifiers that should be treated as already visited.java.lang.IllegalArgumentException
- when argument is null
.public void start(Model model)
model
- The model to be walked.java.lang.IllegalArgumentException
- when argument is null
.public void start(Statement statement)
statement
- The statement to be walked.public void visitNode(Statement statement)
statement
- node to be visitedjava.lang.IllegalArgumentException
- when argument is null
.protected abstract void visitModelStatement(Statement statement)
statement
- The statement to be visited,protected abstract void processChildren(Statement statement)
statement
- Statement those children are to be processed.protected abstract void goToNextStatement()
protected void visitProcess(ModuleProcess node)
node
- The process to be visited.protected boolean processStatement(Statement node)
node
- The model statement to be processed.true
if argument processing has been successfulle finished,
false
otherwise.