net.sourceforge.pmd.dcd
Class ClassLoaderUtil

java.lang.Object
  extended by net.sourceforge.pmd.dcd.ClassLoaderUtil

public class ClassLoaderUtil
extends java.lang.Object

ClassLoader utilities. Useful for extracting additional details from a class hierarchy beyond the basic standard Java Reflection APIs.


Field Summary
static java.lang.String CLINIT
           
static java.lang.String INIT
           
 
Constructor Summary
ClassLoaderUtil()
           
 
Method Summary
static java.lang.String fromInternalForm(java.lang.String internalForm)
           
static java.lang.Class getClass(java.lang.String name)
           
static java.lang.reflect.Constructor getConstructor(java.lang.Class type, java.lang.String name, java.lang.Class... parameterTypes)
           
static java.lang.reflect.Field getField(java.lang.Class type, java.lang.String name)
           
static java.lang.reflect.Method getMethod(java.lang.Class type, java.lang.String name, java.lang.Class... parameterTypes)
           
static java.lang.String getMethodSignature(java.lang.String name, java.lang.Class... parameterTypes)
           
static java.lang.Class[] getParameterTypes(java.lang.String... parameterTypeNames)
           
static boolean isOverridenMethod(java.lang.Class clazz, java.lang.reflect.Method method, boolean checkThisClass)
           
static java.lang.String toInternalForm(java.lang.String internalForm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLINIT

public static final java.lang.String CLINIT
See Also:
Constant Field Values

INIT

public static final java.lang.String INIT
See Also:
Constant Field Values
Constructor Detail

ClassLoaderUtil

public ClassLoaderUtil()
Method Detail

fromInternalForm

public static java.lang.String fromInternalForm(java.lang.String internalForm)

toInternalForm

public static java.lang.String toInternalForm(java.lang.String internalForm)

getClass

public static java.lang.Class getClass(java.lang.String name)

getField

public static java.lang.reflect.Field getField(java.lang.Class type,
                                               java.lang.String name)

getMethod

public static java.lang.reflect.Method getMethod(java.lang.Class type,
                                                 java.lang.String name,
                                                 java.lang.Class... parameterTypes)

getConstructor

public static java.lang.reflect.Constructor getConstructor(java.lang.Class type,
                                                           java.lang.String name,
                                                           java.lang.Class... parameterTypes)

getMethodSignature

public static java.lang.String getMethodSignature(java.lang.String name,
                                                  java.lang.Class... parameterTypes)

getParameterTypes

public static java.lang.Class[] getParameterTypes(java.lang.String... parameterTypeNames)

isOverridenMethod

public static boolean isOverridenMethod(java.lang.Class clazz,
                                        java.lang.reflect.Method method,
                                        boolean checkThisClass)


Copyright © 2002-2011 InfoEther. All Rights Reserved.