Class FlagArgument.FlagArgumentParser<C>

  • All Implemented Interfaces:
    ArgumentParser<C,​java.lang.Object>
    Enclosing class:
    FlagArgument<C>

    public static final class FlagArgument.FlagArgumentParser<C>
    extends java.lang.Object
    implements ArgumentParser<C,​java.lang.Object>
    • Method Summary

      Modifier and Type Method Description
      @NonNull ArgumentParseResult<@NonNull java.lang.Object> parse​(@NonNull CommandContext<@NonNull C> commandContext, @NonNull java.util.Queue<@NonNull java.lang.String> inputQueue)
      Parse command input into a command result
      @NonNull java.util.List<@NonNull java.lang.String> suggestions​(@NonNull CommandContext<C> commandContext, @NonNull java.lang.String input)
      Get a list of suggested arguments that would be correctly parsed by this parser
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parse

        public @NonNull ArgumentParseResult<@NonNull java.lang.Object> parse​(@NonNull CommandContext<@NonNull C> commandContext,
                                                                             @NonNull java.util.Queue<@NonNull java.lang.String> inputQueue)
        Description copied from interface: ArgumentParser
        Parse command input into a command result
        Specified by:
        parse in interface ArgumentParser<C,​java.lang.Object>
        Parameters:
        commandContext - Command context
        inputQueue - The queue of arguments
        Returns:
        Parsed command result
      • suggestions

        public @NonNull java.util.List<@NonNull java.lang.String> suggestions​(@NonNull CommandContext<C> commandContext,
                                                                              @NonNull java.lang.String input)
        Description copied from interface: ArgumentParser
        Get a list of suggested arguments that would be correctly parsed by this parser
        Specified by:
        suggestions in interface ArgumentParser<C,​java.lang.Object>
        Parameters:
        commandContext - Command context
        input - Input string
        Returns:
        List of suggestions