Interface Function.Arguments

All Known Implementing Classes:
ExpressionInterpreter.FunctionArguments
Enclosing interface:
Function<T>

public static interface Function.Arguments
Represents a collection of Function Function.Arguments.
Since:
3.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull Function.Arguments
     
    int
    Gets the amount of arguments.
    Gets the next argument.
  • Method Details

    • empty

      @NotNull static @NotNull Function.Arguments empty()
    • next

      @NotNull @NotNull Function.Argument next()
      Gets the next argument. If there are no more arguments, returns an Function.Argument with no expression and that can be evaluated to null-like values (0 for numbers).
      Returns:
      The next argument.
    • length

      int length()
      Gets the amount of arguments.
      Returns:
      The amount of arguments.
      Since:
      3.0.0