net.sourceforge.pmd.lang.java.symboltable
Class TypeSet.FullyQualifiedNameResolver

java.lang.Object
  extended by net.sourceforge.pmd.lang.java.symboltable.TypeSet.AbstractResolver
      extended by net.sourceforge.pmd.lang.java.symboltable.TypeSet.FullyQualifiedNameResolver
All Implemented Interfaces:
TypeSet.Resolver
Enclosing class:
TypeSet

public static class TypeSet.FullyQualifiedNameResolver
extends TypeSet.AbstractResolver

Resolver that simply loads the class by name. This only works if the class name is given as a fully qualified name.


Field Summary
 
Fields inherited from class net.sourceforge.pmd.lang.java.symboltable.TypeSet.AbstractResolver
pmdClassLoader
 
Constructor Summary
TypeSet.FullyQualifiedNameResolver(PMDASMClassLoader pmdClassLoader)
          Creates a TypeSet.FullyQualifiedNameResolver
 
Method Summary
 Class<?> resolve(String name)
          Resolve the class by the given name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeSet.FullyQualifiedNameResolver

public TypeSet.FullyQualifiedNameResolver(PMDASMClassLoader pmdClassLoader)
Creates a TypeSet.FullyQualifiedNameResolver

Parameters:
pmdClassLoader - the class loader to use
Method Detail

resolve

public Class<?> resolve(String name)
                 throws ClassNotFoundException
Description copied from interface: TypeSet.Resolver
Resolve the class by the given name

Parameters:
name - the name of the class, might be fully classified or not.
Returns:
the class
Throws:
ClassNotFoundException - if the class couldn't be found


Copyright © 2002-2015 InfoEther. All Rights Reserved.