public static class TypeSet.ExplicitImportResolver extends TypeSet.AbstractResolver
pmdClassLoader| Constructor and Description |
|---|
TypeSet.ExplicitImportResolver(PMDASMClassLoader pmdClassLoader,
Set<String> importStmts)
Creates a new
TypeSet.ExplicitImportResolver. |
| 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.ExplicitImportResolver(PMDASMClassLoader pmdClassLoader, Set<String> importStmts)
TypeSet.ExplicitImportResolver.pmdClassLoader - the class loader to use.importStmts - the import statementspublic 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.