public final class ConstructorUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ConstructorUtils.ArgumentTransformer |
| Modifier and Type | Method and Description |
|---|---|
static <C> java.lang.reflect.Constructor<C> |
getConstructor(java.lang.Class<C> type,
java.lang.Class<?>[] givenTypes)
Returns the constructor where the formal parameter list matches the
givenTypes argument.
|
static java.lang.Class<?>[] |
getConstructorParameters(java.lang.Class<?> type,
java.lang.Class<?>[] givenTypes)
Returns the parameters for the constructor that matches the given types.
|
static java.lang.Iterable<java.util.function.Function<java.lang.Object[],java.lang.Object[]>> |
getTransformers(java.lang.reflect.Constructor<?> constructor)
Returns a fetch of transformers applicable to the given constructor.
|
public static <C> java.lang.reflect.Constructor<C> getConstructor(java.lang.Class<C> type,
java.lang.Class<?>[] givenTypes)
throws java.lang.NoSuchMethodException
getConstructorParameters(java.lang.Class, java.lang.Class[])
to get the parameters.type - typegivenTypes - parameter typesjava.lang.NoSuchMethodExceptionpublic static java.lang.Class<?>[] getConstructorParameters(java.lang.Class<?> type,
java.lang.Class<?>[] givenTypes)
type - typegivenTypes - parameter typespublic static java.lang.Iterable<java.util.function.Function<java.lang.Object[],java.lang.Object[]>> getTransformers(java.lang.reflect.Constructor<?> constructor)
constructor - constructorCopyright © 2007–2021 Querydsl. All rights reserved.