Class ScopeAndDeclarationFinder
- java.lang.Object
-
- net.sourceforge.pmd.lang.plsql.ast.PLSQLParserVisitorAdapter
-
- net.sourceforge.pmd.lang.plsql.symboltable.ScopeAndDeclarationFinder
-
- All Implemented Interfaces:
PLSQLParserVisitor
public class ScopeAndDeclarationFinder extends PLSQLParserVisitorAdapter
Visitor for scope creation. Visits all nodes of an AST and creates scope objects for nodes representing syntactic entities which may contain declarations. For example, a block may contain variable definitions (which are declarations) and therefore needs a scope object where these declarations can be associated, whereas an expression can't contain declarations and therefore doesn't need a scope object. With the exception of global scopes, each scope object is linked to its parent scope, which is the scope object of the next embedding syntactic entity that has a scope.
-
-
Constructor Summary
Constructors Constructor Description ScopeAndDeclarationFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
visit(ASTBlock node, Object data)
Object
visit(ASTForAllStatement node, Object data)
Object
visit(ASTForStatement node, Object data)
Object
visit(ASTInput node, Object data)
Object
visit(ASTObjectDeclaration node, Object data)
Object
visit(ASTPackageBody node, Object data)
Object
visit(ASTPackageSpecification node, Object data)
Object
visit(ASTProgramUnit node, Object data)
Object
visit(ASTTriggerTimingPointSection node, Object data)
Object
visit(ASTTriggerUnit node, Object data)
Object
visit(ASTTypeMethod node, Object data)
Object
visit(ASTTypeSpecification node, Object data)
Object
visit(ASTVariableOrConstantDeclaratorId node, Object data)
-
Methods inherited from class net.sourceforge.pmd.lang.plsql.ast.PLSQLParserVisitorAdapter
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Method Detail
-
visit
public Object visit(ASTInput node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTPackageSpecification node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTPackageBody node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTTypeSpecification node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTTriggerUnit node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTTriggerTimingPointSection node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTObjectDeclaration node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTBlock node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTTypeMethod node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTProgramUnit node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTForStatement node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTForAllStatement node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
visit
public Object visit(ASTVariableOrConstantDeclaratorId node, Object data)
- Specified by:
visit
in interfacePLSQLParserVisitor
- Overrides:
visit
in classPLSQLParserVisitorAdapter
-
-