Class ScopeAndDeclarationFinder
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.ast.JavaParserVisitorAdapter
-
- net.sourceforge.pmd.lang.java.symboltable.ScopeAndDeclarationFinder
-
- All Implemented Interfaces:
JavaParserVisitor
@Deprecated @InternalApi public class ScopeAndDeclarationFinder extends JavaParserVisitorAdapter
Deprecated.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()
Deprecated.Creates a newScopeAndDeclarationFinder
using the current class loader.ScopeAndDeclarationFinder(ClassLoader classLoader)
Deprecated.Creates a newScopeAndDeclarationFinder
.
-
Method Summary
-
Methods inherited from class net.sourceforge.pmd.lang.java.ast.JavaParserVisitorAdapter
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
-
-
-
-
Constructor Detail
-
ScopeAndDeclarationFinder
public ScopeAndDeclarationFinder()
Deprecated.Creates a newScopeAndDeclarationFinder
using the current class loader.
-
ScopeAndDeclarationFinder
public ScopeAndDeclarationFinder(ClassLoader classLoader)
Deprecated.Creates a newScopeAndDeclarationFinder
.- Parameters:
classLoader
- the class loader to use to resolve types, seeSourceFileScope
andTypeSet
-
-
Method Detail
-
visit
public Object visit(ASTCompilationUnit node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTClassOrInterfaceDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTEnumDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTAnnotationTypeDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTRecordDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTClassOrInterfaceBody node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTBlock node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTCatchStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTConstructorDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTMethodDeclaration node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTLambdaExpression node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTTryStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTForStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTVariableDeclaratorId node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
visit
public Object visit(ASTSwitchStatement node, Object data)
Deprecated.- Specified by:
visit
in interfaceJavaParserVisitor
- Overrides:
visit
in classJavaParserVisitorAdapter
-
-