Interface SolaScriptCallable

All Known Implementing Classes:
SolaScriptFunction

@NullMarked public interface SolaScriptCallable
SolaScriptCallable specifies the contract for something that is callable in a sola script.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The number of expected arguments.
    @Nullable Object
    call(List<@Nullable Object> arguments)
    Calls the function passing along the arguments for the call and returning an evaluated value.
  • Method Details

    • arity

      int arity()
      The number of expected arguments.
      Returns:
      the number of expected arguments
    • call

      @Nullable Object call(List<@Nullable Object> arguments)
      Calls the function passing along the arguments for the call and returning an evaluated value.
      Parameters:
      arguments - the arguments for the call
      Returns:
      the evaluated value