Package team.unnamed.mocha.runtime.value
Interface Function.Arguments
- All Known Implementing Classes:
ExpressionInterpreter.FunctionArguments
public static interface Function.Arguments
Represents a collection of
Function Function.Arguments.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Function.Argumentsempty()intlength()Gets the amount of arguments.@NotNull Function.Argumentnext()Gets the next argument.
-
Method Details
-
empty
-
next
Gets the next argument. If there are no more arguments, returns anFunction.Argumentwith 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
-