Package team.unnamed.mocha.runtime.value
Interface Function.Argument
public static interface Function.Argument
Represents a
Function argument. It is an expression
that can be easily evaluated inside the function.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescription@Nullable Valueeval()Evaluates the argument expression.@Nullable ExpressionGets the argument expression.
-
Method Details
-
expression
Gets the argument expression. Null if and only if the argument wasn't actually provided and is just returned byFunction.Argumentsfor ease of use.- Returns:
- The argument expression.
- Since:
- 3.0.0
-
eval
Evaluates the argument expression.- Returns:
- The evaluation result.
- Since:
- 3.0.0
-