public class FindConstructor extends Object
| Constructor and Description |
|---|
FindConstructor() |
| Modifier and Type | Method and Description |
|---|---|
static Constructor<? extends Object> |
getConstructor(Class<? extends Object> source,
Class<? extends Object>[] parameterTypes)
Finds the most specific applicable constructor
|
static Constructor<? extends Object> |
getDeclaredConstructor(Class<? extends Object> source,
Class<? extends Object>[] parameterTypes)
Finds the most specific applicable declared constructor
|
public static Constructor<? extends Object> getConstructor(Class<? extends Object> source, Class<? extends Object>[] parameterTypes) throws NoSuchMethodException
source - Class to find a constructor forparameterTypes - Parameter types to search forNoSuchMethodExceptionpublic static Constructor<? extends Object> getDeclaredConstructor(Class<? extends Object> source, Class<? extends Object>[] parameterTypes) throws NoSuchMethodException
source - Class to find method inparameterTypes - Parameter types to search forNoSuchMethodExceptionCopyright © 2016. All Rights Reserved.