Class FunctionCall

java.lang.Object
com.suncode.pwfl.core.function.FunctionCall

@Api public class FunctionCall extends Object
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 Details

  • Method Details

    • getName

      public String getName()
      Returns name of underlying function.
      Returns:
      function name
    • getFunction

      public Function getFunction()
      Returns underlying function.
      Returns:
      function
    • getOverride

      public FunctionOverride getOverride()
      Returns override that will be invoked in call() method.
      Returns:
      choosed function override
    • getReturnType

      public Type<?> getReturnType()
      Returns type of result of call() method.
      Returns:
      return type
    • getArgs

      public Object[] 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

      public String toString()
      Overrides:
      toString in class Object