All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fiolino.common.reflection.MethodFoundException Maven / Gradle / Ivy

Go to download

General structure to easily create dynamic logic via MethodHandles and others.

There is a newer version: 1.0.10
Show newest version
package org.fiolino.common.reflection;

import java.lang.reflect.Method;

/**
 * This is thrown from the {@link MethodFinderCallback} when any method was called.
 *
 * Created by Michael Kuhlmann on 14.12.2015.
 */
final class MethodFoundException extends RuntimeException {
    private final Method method;
    private final Object[] parameters;

    MethodFoundException(Method method, Object[] parameters) {
        this.method = method;
        this.parameters = parameters;
    }

    Method getMethod() {
        return method;
    }

    Object[] getParameters() {
        return parameters;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy