TypeSet.Resolverpublic static class TypeSet.ExplicitImportResolver extends TypeSet.AbstractResolver
pmdClassLoader| Constructor | Description |
|---|---|
ExplicitImportResolver(PMDASMClassLoader pmdClassLoader,
java.util.Set<java.lang.String> importStmts) |
Creates a new
TypeSet.ExplicitImportResolver. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
couldResolve(java.lang.String name) |
Checks if the given class could be resolved by this resolver.
|
java.lang.Class<?> |
resolve(java.lang.String name) |
Resolve the class by the given name
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveMaybeInnerpublic ExplicitImportResolver(PMDASMClassLoader pmdClassLoader, java.util.Set<java.lang.String> importStmts)
TypeSet.ExplicitImportResolver.pmdClassLoader - the class loader to use.importStmts - the import statementspublic java.lang.Class<?> resolve(java.lang.String name)
throws java.lang.ClassNotFoundException
TypeSet.Resolvername - the name of the class, might be fully classified or not.java.lang.ClassNotFoundException - if the class couldn't be foundpublic boolean couldResolve(java.lang.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–2018 PMD. All rights reserved.