net.sourceforge.pmd.dcd

Class ClassLoaderUtil

public class ClassLoaderUtil extends Object

ClassLoader utilities. Useful for extracting additional details from a class hierarchy beyond the basic standard Java Reflection APIs.
Field Summary
static StringCLINIT
static StringINIT
Method Summary
static StringfromInternalForm(String internalForm)
static ClassgetClass(String name)
static ConstructorgetConstructor(Class type, String name, Class... parameterTypes)
static FieldgetField(Class type, String name)
static MethodgetMethod(Class type, String name, Class... parameterTypes)
static StringgetMethodSignature(String name, Class... parameterTypes)
static Class[]getParameterTypes(String... parameterTypeNames)
static booleanisOverridenMethod(Class clazz, Method method, boolean checkThisClass)
static StringtoInternalForm(String internalForm)

Field Detail

CLINIT

public static final String CLINIT

INIT

public static final String INIT

Method Detail

fromInternalForm

public static String fromInternalForm(String internalForm)

getClass

public static Class getClass(String name)

getConstructor

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

getField

public static Field getField(Class type, String name)

getMethod

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

getMethodSignature

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

getParameterTypes

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

isOverridenMethod

public static boolean isOverridenMethod(Class clazz, Method method, boolean checkThisClass)

toInternalForm

public static String toInternalForm(String internalForm)