public class ClassUtil extends Object
Constructor and Description |
---|
ClassUtil() |
Modifier and Type | Method and Description |
---|---|
static Method |
getDeclaredMethod(Class aClass,
String aMethodName,
Class[] someParameterTypes) |
static Method |
getMethod(Class aClass,
String aMethodName,
Class[] someParameterTypes) |
public static Method getMethod(Class aClass, String aMethodName, Class[] someParameterTypes) throws NoSuchMethodException
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)NoSuchMethodException
- If a match cannot be foundpublic static Method getDeclaredMethod(Class aClass, String aMethodName, Class[] someParameterTypes) throws NoSuchMethodException
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)NoSuchMethodException
- If a match cannot be foundCopyright © 2004–2020 Eclipse Foundation. All rights reserved.