public static class TypeSet.CurrentPackageResolver extends TypeSet.AbstractResolver
pmdClassLoader| Constructor and Description |
|---|
TypeSet.CurrentPackageResolver(PMDASMClassLoader pmdClassLoader,
String pkg)
Creates a new
TypeSet.CurrentPackageResolver |
| Modifier and Type | Method and Description |
|---|---|
boolean |
couldResolve(String name)
Checks if the given class could be resolved by this resolver.
|
Class<?> |
resolve(String name)
Resolve the class by the given name
|
resolveMaybeInnerpublic TypeSet.CurrentPackageResolver(PMDASMClassLoader pmdClassLoader, String pkg)
TypeSet.CurrentPackageResolverpmdClassLoader - the class loader to usepkg - the package namepublic Class<?> resolve(String name) throws ClassNotFoundException
TypeSet.Resolvername - the name of the class, might be fully classified or not.ClassNotFoundException - if the class couldn't be foundpublic boolean couldResolve(String name)
TypeSet.ResolvercouldResolve in interface TypeSet.ResolvercouldResolve in class TypeSet.AbstractResolvername - the name of the class, might be fully classified or not.Copyright © 2002–2017 PMD. All rights reserved.