![JAR search and dependency download from the Maven repository](/logo.png)
org.mvel2.ast.FunctionInstance Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tbel Show documentation
Show all versions of tbel Show documentation
TBEL is a powerful expression language for ThingsBoard platform user-defined functions.
Original implementation is based on MVEL.
package org.mvel2.ast;
import org.mvel2.ExecutionContext;
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 this.call(ctx, null, thisValue, factory, parms);
}
public Object call(Object ctx, ExecutionContext execCtx, Object thisValue, VariableResolverFactory factory, Object[] parms) {
return function.call(ctx, execCtx, thisValue, factory, parms);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy