TypeSet.Resolver
public static class TypeSet.ImplicitImportResolver extends TypeSet.AbstractResolver
java.lang.*
.pmdClassLoader
Constructor | Description |
---|---|
ImplicitImportResolver(PMDASMClassLoader pmdClassLoader) |
Creates a
TypeSet.ImplicitImportResolver |
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, wait
resolveMaybeInner
public ImplicitImportResolver(PMDASMClassLoader pmdClassLoader)
TypeSet.ImplicitImportResolver
pmdClassLoader
- the class loaderpublic java.lang.Class<?> resolve(java.lang.String name) throws java.lang.ClassNotFoundException
TypeSet.Resolver
name
- 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.Resolver
couldResolve
in interface TypeSet.Resolver
couldResolve
in class TypeSet.AbstractResolver
name
- the name of the class, might be fully classified or not.Copyright © 2002–2018 PMD. All rights reserved.