Package com.suncode.pwfl.core.function
Class FunctionCall
java.lang.Object
com.suncode.pwfl.core.function.FunctionCall
Function call. Invocation of known
Function
with known parameters. Used as way to pass
around concrete function invocations to other components.- Author:
- RafaĆ Nowacki 5 lut 2016
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionCall
(FunctionOverride override, Object... args) FunctionCall
(Function fn, Type<?> returnType, Object... args) -
Method Summary
Modifier and TypeMethodDescription<T> T
call()
Calls referenced function with provided arguments.Object[]
getArgs()
Returns call arguments of this function call.Returns underlying function.getName()
Returns name of underlying function.Returns override that will be invoked incall()
method.Type<?>
Returns type of result ofcall()
method.toString()
-
Constructor Details
-
FunctionCall
-
FunctionCall
-
FunctionCall
-
-
Method Details
-
getName
Returns name of underlying function.- Returns:
- function name
-
getFunction
Returns underlying function.- Returns:
- function
-
getOverride
Returns override that will be invoked incall()
method.- Returns:
- choosed function override
-
getReturnType
Returns type of result ofcall()
method.- Returns:
- return type
-
getArgs
Returns call arguments of this function call.- Returns:
- call arguments
-
call
public <T> T call()Calls referenced function with provided arguments. Returns this call results.- Returns:
- references function call result.
-
toString
-