Class AsmSymbolResolver
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.symbols.internal.asm.AsmSymbolResolver
-
- All Implemented Interfaces:
SymbolResolver
public class AsmSymbolResolver extends Object implements SymbolResolver
ASymbolResolver
that reads class files to produce symbols.
-
-
Constructor Summary
Constructors Constructor Description AsmSymbolResolver(TypeSystem ts, Classpath classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable JClassSymbol
resolveClassFromBinaryName(@NonNull String binaryName)
Resolves a class symbol from its canonical name.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.SymbolResolver
resolveClassFromCanonicalName
-
-
-
-
Constructor Detail
-
AsmSymbolResolver
public AsmSymbolResolver(TypeSystem ts, Classpath classLoader)
-
-
Method Detail
-
resolveClassFromBinaryName
public @Nullable JClassSymbol resolveClassFromBinaryName(@NonNull String binaryName)
Description copied from interface:SymbolResolver
Resolves a class symbol from its canonical name. Periods ('.') will not be interpreted as nested-class separators, so this performs at most one classloader lookup. Note that external symbol resolvers do not need to implement lookup for primitive types, for local and anonymous classes, or for array classes. This is handled by the AST implementation or by the type system. Looking up such symbols is undefined behaviour.- Specified by:
resolveClassFromBinaryName
in interfaceSymbolResolver
-
-