Interface MetavarInference

All Known Implementing Classes:
BooleanArgumentType, CaseInsensitiveEnumArgumentType, CaseInsensitiveEnumNameArgumentType, CaseInsensitiveEnumStringArgumentType, EnumStringArgumentType, ReflectArgumentType

public interface MetavarInference
This interface provides a way to infer metavar strings from a context which implements this interface.
Since:
0.7.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns inferred array of metavar strings.
  • Method Details

    • inferMetavar

      String[] inferMetavar()

      Returns inferred array of metavar strings.

      The returned array is treated like when strings are given in Argument.metavar(String...).

      Returns:
      inferred array of metavar strings, or null if there is no metavar inferred.