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

org.mvel2.ast.FunctionInstance Maven / Gradle / Ivy

package org.mvel2.ast;

import org.mvel2.integration.VariableResolverFactory;

/**
 * @author Mike Brock
 */
public class FunctionInstance {

    protected final Function function;

    public FunctionInstance(Function function) {
        this.function = function;
    }

    public Function getFunction() {
        return function;
    }

    public Object call(Object ctx, Object thisValue, VariableResolverFactory factory, Object[] parms) {
        return function.call(ctx, thisValue, factory, parms);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy