Package team.unnamed.mocha.runtime
Class ExpressionInterpreter.FunctionArguments
java.lang.Object
team.unnamed.mocha.runtime.ExpressionInterpreter.FunctionArguments
- All Implemented Interfaces:
Function.Arguments
- Enclosing class:
- ExpressionInterpreter<T>
public static class ExpressionInterpreter.FunctionArguments
extends Object
implements Function.Arguments
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintlength()Gets the amount of arguments.@NotNull Function.Argumentnext()Gets the next argument.
-
Field Details
-
EMPTY
-
-
Method Details
-
next
Description copied from interface:Function.ArgumentsGets 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).- Specified by:
nextin interfaceFunction.Arguments- Returns:
- The next argument.
-
length
public int length()Description copied from interface:Function.ArgumentsGets the amount of arguments.- Specified by:
lengthin interfaceFunction.Arguments- Returns:
- The amount of arguments.
-