public interface AstVisitor
Modifier and Type | Method and Description |
---|---|
java.util.List<AstNodeType> |
getAstNodeTypesToVisit()
The AST node types that this check must be registered for.
|
void |
leaveFile(AstNode ast)
Called once a computation unit tree has been fully visited.
|
void |
leaveNode(AstNode ast)
Called once an AST node has been fully visited.
|
void |
visitFile(AstNode ast)
Called before starting visiting a computation unit tree.
|
void |
visitNode(AstNode ast)
Called to process an AST node whose type has been registered to be visited.
|
java.util.List<AstNodeType> getAstNodeTypesToVisit()
void visitFile(AstNode ast)
ast
- the root of the treevoid leaveFile(AstNode ast)
ast
- the root of the treevoid visitNode(AstNode ast)
ast
- the AST node to processvoid leaveNode(AstNode ast)
ast
- the AST node which has been visitedCopyright © 2012 SonarSource. All Rights Reserved.