java.lang.Object
com.pervasive.datarush.functions.DefaultFunctionInvoker
- All Implemented Interfaces:
FunctionInvoker
A default function invoker, which passes arguments directly to the method using
an
Arguments may specify a converter using the
If the number of arguments does not match the method's expected number of arguments, an IllegalArgumentException is thrown.
ArgumentConverter.Arguments may specify a converter using the
FunctionArgument annotation.
If no argument converter is specified for an argument, DefaultArgumentConverter
is used.If the number of arguments does not match the method's expected number of arguments, an IllegalArgumentException is thrown.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(Method m, ScalarValuedFunction[] args) Invokes a method to return a ScalarValuedFunction, using the given arguments.
-
Constructor Details
-
DefaultFunctionInvoker
public DefaultFunctionInvoker()
-
-
Method Details
-
invoke
public Object invoke(Method m, ScalarValuedFunction[] args) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException Description copied from interface:FunctionInvokerInvokes a method to return a ScalarValuedFunction, using the given arguments.- Specified by:
invokein interfaceFunctionInvoker- Parameters:
m- The method to invoke.args- The ScalarValuedFunction arguments from the call to the FunctionRegistry.- Returns:
- The ScalarValuedFunction or Aggregation returned by invoking the method.
- Throws:
IllegalArgumentExceptionIllegalAccessExceptionInvocationTargetException
-