Class SymbolResolutionPass
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.symbols.internal.ast.SymbolResolutionPass
-
public final class SymbolResolutionPass extends Object
Populates symbols on declaration nodes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.pcollections.PSet<SymbolicValue.SymAnnot>
buildSymbolicAnnotations(NodeStream<ASTAnnotation> annotations)
Converts between nodes toSymbolicValue.SymAnnot
.static SymbolResolver
traverse(net.sourceforge.pmd.lang.java.internal.JavaAstProcessor processor, ASTCompilationUnit root)
Traverse the given compilation unit, creating symbols on allSymbolDeclaratorNode
s.
-
-
-
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 allSymbolDeclaratorNode
s.- Parameters:
processor
- Processorroot
- Root node- Returns:
- A symbol resolver for all encountered type declarations. This is used to avoid hitting the classloader for local declarations.
-
buildSymbolicAnnotations
public static org.pcollections.PSet<SymbolicValue.SymAnnot> buildSymbolicAnnotations(NodeStream<ASTAnnotation> annotations)
Converts between nodes toSymbolicValue.SymAnnot
. Annotations that could not be converted, eg because they are written with invalid code, are discarded.
-
-