name.remal.gradle_plugins.toolkit.reflection.MethodsInvoker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toolkit Show documentation
Show all versions of toolkit Show documentation
Remal Gradle plugins: toolkit: toolkit
package name.remal.gradle_plugins.toolkit.reflection;
import static javax.annotation.meta.When.UNKNOWN;
import static lombok.AccessLevel.PRIVATE;
import javax.annotation.Nonnull;
import lombok.NoArgsConstructor;
import lombok.val;
@NoArgsConstructor(access = PRIVATE)
@SuppressWarnings({"unchecked", "checkstyle:LineLength", "checkstyle:RightCurlyAlone", "java:S107", "java:S1128", "java:S1611"})
public abstract class MethodsInvoker {
@Nonnull(when = UNKNOWN)
public static R invokeMethod(T target, Class returnType, String methodName) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName);
return method.invoke(target);
}
@Nonnull(when = UNKNOWN)
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1);
return method.invoke(target, param1);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2);
return method.invoke(target, param1, param2);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3);
return method.invoke(target, param1, param2, param3);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4);
return method.invoke(target, param1, param2, param3, param4);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4, paramType5);
return method.invoke(target, param1, param2, param3, param4, param5);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6);
return method.invoke(target, param1, param2, param3, param4, param5, param6);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7);
return method.invoke(target, param1, param2, param3, param4, param5, param6, param7);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7, Class paramType8, @Nonnull(when = UNKNOWN) P8 param8) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7, paramType8);
return method.invoke(target, param1, param2, param3, param4, param5, param6, param7, param8);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7, Class paramType8, @Nonnull(when = UNKNOWN) P8 param8, Class paramType9, @Nonnull(when = UNKNOWN) P9 param9) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7, paramType8, paramType9);
return method.invoke(target, param1, param2, param3, param4, param5, param6, param7, param8, param9);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7, Class paramType8, @Nonnull(when = UNKNOWN) P8 param8, Class paramType9, @Nonnull(when = UNKNOWN) P9 param9, Class paramType10, @Nonnull(when = UNKNOWN) P10 param10) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7, paramType8, paramType9, paramType10);
return method.invoke(target, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7, Class paramType8, @Nonnull(when = UNKNOWN) P8 param8, Class paramType9, @Nonnull(when = UNKNOWN) P9 param9, Class paramType10, @Nonnull(when = UNKNOWN) P10 param10, Class paramType11, @Nonnull(when = UNKNOWN) P11 param11) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7, paramType8, paramType9, paramType10, paramType11);
return method.invoke(target, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7, Class paramType8, @Nonnull(when = UNKNOWN) P8 param8, Class paramType9, @Nonnull(when = UNKNOWN) P9 param9, Class paramType10, @Nonnull(when = UNKNOWN) P10 param10, Class paramType11, @Nonnull(when = UNKNOWN) P11 param11, Class paramType12, @Nonnull(when = UNKNOWN) P12 param12) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7, paramType8, paramType9, paramType10, paramType11, paramType12);
return method.invoke(target, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7, Class paramType8, @Nonnull(when = UNKNOWN) P8 param8, Class paramType9, @Nonnull(when = UNKNOWN) P9 param9, Class paramType10, @Nonnull(when = UNKNOWN) P10 param10, Class paramType11, @Nonnull(when = UNKNOWN) P11 param11, Class paramType12, @Nonnull(when = UNKNOWN) P12 param12, Class paramType13, @Nonnull(when = UNKNOWN) P13 param13) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7, paramType8, paramType9, paramType10, paramType11, paramType12, paramType13);
return method.invoke(target, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7, Class paramType8, @Nonnull(when = UNKNOWN) P8 param8, Class paramType9, @Nonnull(when = UNKNOWN) P9 param9, Class paramType10, @Nonnull(when = UNKNOWN) P10 param10, Class paramType11, @Nonnull(when = UNKNOWN) P11 param11, Class paramType12, @Nonnull(when = UNKNOWN) P12 param12, Class paramType13, @Nonnull(when = UNKNOWN) P13 param13, Class paramType14, @Nonnull(when = UNKNOWN) P14 param14) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7, paramType8, paramType9, paramType10, paramType11, paramType12, paramType13, paramType14);
return method.invoke(target, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14);
}
@Nonnull(when = UNKNOWN)
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static R invokeMethod(T target, Class returnType, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7, Class paramType8, @Nonnull(when = UNKNOWN) P8 param8, Class paramType9, @Nonnull(when = UNKNOWN) P9 param9, Class paramType10, @Nonnull(when = UNKNOWN) P10 param10, Class paramType11, @Nonnull(when = UNKNOWN) P11 param11, Class paramType12, @Nonnull(when = UNKNOWN) P12 param12, Class paramType13, @Nonnull(when = UNKNOWN) P13 param13, Class paramType14, @Nonnull(when = UNKNOWN) P14 param14, Class paramType15, @Nonnull(when = UNKNOWN) P15 param15) {
val method = MembersFinder.getMethod((Class) target.getClass(), returnType, methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7, paramType8, paramType9, paramType10, paramType11, paramType12, paramType13, paramType14, paramType15);
return method.invoke(target, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15);
}
public static void invokeMethod(T target, String methodName) {
val method = MembersFinder.getMethod((Class) target.getClass(), methodName);
method.invoke(target);
}
public static void invokeMethod(T target, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1) {
val method = MembersFinder.getMethod((Class) target.getClass(), methodName, paramType1);
method.invoke(target, param1);
}
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static void invokeMethod(T target, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2) {
val method = MembersFinder.getMethod((Class) target.getClass(), methodName, paramType1, paramType2);
method.invoke(target, param1, param2);
}
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static void invokeMethod(T target, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3) {
val method = MembersFinder.getMethod((Class) target.getClass(), methodName, paramType1, paramType2, paramType3);
method.invoke(target, param1, param2, param3);
}
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static void invokeMethod(T target, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4) {
val method = MembersFinder.getMethod((Class) target.getClass(), methodName, paramType1, paramType2, paramType3, paramType4);
method.invoke(target, param1, param2, param3, param4);
}
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static void invokeMethod(T target, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5) {
val method = MembersFinder.getMethod((Class) target.getClass(), methodName, paramType1, paramType2, paramType3, paramType4, paramType5);
method.invoke(target, param1, param2, param3, param4, param5);
}
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static void invokeMethod(T target, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6) {
val method = MembersFinder.getMethod((Class) target.getClass(), methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6);
method.invoke(target, param1, param2, param3, param4, param5, param6);
}
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static void invokeMethod(T target, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7) {
val method = MembersFinder.getMethod((Class) target.getClass(), methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7);
method.invoke(target, param1, param2, param3, param4, param5, param6, param7);
}
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static void invokeMethod(T target, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7, Class paramType8, @Nonnull(when = UNKNOWN) P8 param8) {
val method = MembersFinder.getMethod((Class) target.getClass(), methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7, paramType8);
method.invoke(target, param1, param2, param3, param4, param5, param6, param7, param8);
}
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static void invokeMethod(T target, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7, Class paramType8, @Nonnull(when = UNKNOWN) P8 param8, Class paramType9, @Nonnull(when = UNKNOWN) P9 param9) {
val method = MembersFinder.getMethod((Class) target.getClass(), methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7, paramType8, paramType9);
method.invoke(target, param1, param2, param3, param4, param5, param6, param7, param8, param9);
}
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static void invokeMethod(T target, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class paramType6, @Nonnull(when = UNKNOWN) P6 param6, Class paramType7, @Nonnull(when = UNKNOWN) P7 param7, Class paramType8, @Nonnull(when = UNKNOWN) P8 param8, Class paramType9, @Nonnull(when = UNKNOWN) P9 param9, Class paramType10, @Nonnull(when = UNKNOWN) P10 param10) {
val method = MembersFinder.getMethod((Class) target.getClass(), methodName, paramType1, paramType2, paramType3, paramType4, paramType5, paramType6, paramType7, paramType8, paramType9, paramType10);
method.invoke(target, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10);
}
@name.remal.gradle_plugins.toolkit.annotations.internal.Generated
public static void invokeMethod(T target, String methodName, Class paramType1, @Nonnull(when = UNKNOWN) P1 param1, Class paramType2, @Nonnull(when = UNKNOWN) P2 param2, Class paramType3, @Nonnull(when = UNKNOWN) P3 param3, Class paramType4, @Nonnull(when = UNKNOWN) P4 param4, Class paramType5, @Nonnull(when = UNKNOWN) P5 param5, Class