Class SymbolResolutionPass


  • public final class SymbolResolutionPass
    extends Object
    Populates symbols on declaration nodes.
    • Method Detail

      • traverse

        public static SymbolResolver traverse​(net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor,
                                              ASTCompilationUnit root)
        Traverse the given compilation unit, creating symbols on all SymbolDeclaratorNodes.
        Parameters:
        processor - Processor
        root - Root node
        Returns:
        A symbol resolver for all encountered type declarations. This is used to avoid hitting the classloader for local declarations.