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

com.swak.core.expression.SwakExpressionRootObject Maven / Gradle / Ivy

The newest version!
package com.swak.core.expression;

import org.springframework.util.Assert;

import java.lang.reflect.Method;

/**
 * @author yuanchao.ma
 * @since  2022/06/14
 */
public class SwakExpressionRootObject {


    private final Method method;

    private final Object[] args;

    private final Object target;

    private final Class targetClass;


    public SwakExpressionRootObject(Method method, Object[] args, Object target, Class targetClass) {

        Assert.notNull(method, "Method is required");
        Assert.notNull(targetClass, "targetClass is required");
        this.method = method;
        this.target = target;
        this.targetClass = targetClass;
        this.args = args;
    }

    public Method getMethod() {
        return this.method;
    }

    public String getMethodName() {
        return this.method.getName();
    }

    public Object[] getArgs() {
        return this.args;
    }

    public Object getTarget() {
        return this.target;
    }

    public Class getTargetClass() {
        return this.targetClass;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy