org.eclipse.ecf.core.util.reflection
Class ClassUtil

java.lang.Object
  extended by org.eclipse.ecf.core.util.reflection.ClassUtil

public class ClassUtil
extends java.lang.Object

Since:
2.2

Constructor Summary
ClassUtil()
           
 
Method Summary
static java.lang.reflect.Method getDeclaredMethod(java.lang.Class aClass, java.lang.String aMethodName, java.lang.Class[] someParameterTypes)
           
static java.lang.reflect.Method getMethod(java.lang.Class aClass, java.lang.String aMethodName, java.lang.Class[] someParameterTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassUtil

public ClassUtil()
Method Detail

getMethod

public static java.lang.reflect.Method getMethod(java.lang.Class aClass,
                                                 java.lang.String aMethodName,
                                                 java.lang.Class[] someParameterTypes)
                                          throws java.lang.NoSuchMethodException
Parameters:
aClass - The Class providing method under question (Must not be null)
aMethodName - The method name to search for (Must not be null)
someParameterTypes - Method arguments (May be null or parameters)
Returns:
A match. If more than one method matched (due to overloading) an arbitrary match is taken
Throws:
java.lang.NoSuchMethodException - If a match cannot be found

getDeclaredMethod

public static java.lang.reflect.Method getDeclaredMethod(java.lang.Class aClass,
                                                         java.lang.String aMethodName,
                                                         java.lang.Class[] someParameterTypes)
                                                  throws java.lang.NoSuchMethodException
Parameters:
aClass - The Class providing method under question (Must not be null)
aMethodName - The method name to search for (Must not be null)
someParameterTypes - Method arguments (May be null or parameters)
Returns:
A match. If more than one method matched (due to overloading) an arbitrary match is taken
Throws:
java.lang.NoSuchMethodException - If a match cannot be found