Interface Function.Argument

Enclosing interface:
Function<T>

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 Type
    Method
    Description
    @Nullable Value
    Evaluates the argument expression.
    @Nullable Expression
    Gets the argument expression.
  • Method Details

    • expression

      @Nullable @Nullable Expression expression()
      Gets the argument expression. Null if and only if the argument wasn't actually provided and is just returned by Function.Arguments for ease of use.
      Returns:
      The argument expression.
      Since:
      3.0.0
    • eval

      @Nullable @Nullable Value eval()
      Evaluates the argument expression.
      Returns:
      The evaluation result.
      Since:
      3.0.0