TypeSet.Resolver
TypeSet.CurrentPackageResolver
, TypeSet.ExplicitImportResolver
, TypeSet.FullyQualifiedNameResolver
, TypeSet.ImplicitImportResolver
, TypeSet.ImportOnDemandResolver
public abstract static class TypeSet.AbstractResolver extends java.lang.Object implements TypeSet.Resolver
PMDASMClassLoader
class
loader.Modifier and Type | Field | Description |
---|---|---|
protected PMDASMClassLoader |
pmdClassLoader |
the class loader.
|
Constructor | Description |
---|---|
AbstractResolver(PMDASMClassLoader pmdClassLoader) |
Creates a new AbstractResolver that uses the given class loader.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
couldResolve(java.lang.String name) |
Checks if the given class could be resolved by this resolver.
|
protected java.lang.Class<?> |
resolveMaybeInner(java.lang.String name,
java.lang.String fqName) |
Resolves the given class name with the given FQCN, considering it may
be an inner class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolve
protected final PMDASMClassLoader pmdClassLoader
public AbstractResolver(PMDASMClassLoader pmdClassLoader)
pmdClassLoader
- the class loader to useprotected java.lang.Class<?> resolveMaybeInner(java.lang.String name, java.lang.String fqName)
name
- The name of the class to load.fqName
- The proposed FQCN for the class.public boolean couldResolve(java.lang.String name)
TypeSet.Resolver
couldResolve
in interface TypeSet.Resolver
name
- the name of the class, might be fully classified or not.Copyright © 2002–2018 PMD. All rights reserved.