Class ListVariableValueArgument.StringParser<C>

java.lang.Object
rocks.gravili.notquests.paper.commands.arguments.variables.ListVariableValueArgument.StringParser<C>
All Implemented Interfaces:
cloud.commandframework.arguments.parser.ArgumentParser<C,String>
Enclosing class:
ListVariableValueArgument<C>

public static final class ListVariableValueArgument.StringParser<C> extends Object implements cloud.commandframework.arguments.parser.ArgumentParser<C,String>
  • Field Summary

    Fields inherited from interface cloud.commandframework.arguments.parser.ArgumentParser

    DEFAULT_ARGUMENT_COUNT
  • Constructor Summary

    Constructors
    Constructor
    Description
    StringParser(NotQuests main, Variable<?> variable)
    Construct a new String parser
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    @NonNull cloud.commandframework.arguments.parser.ArgumentParseResult<String>
    parse(@NonNull cloud.commandframework.context.CommandContext<C> context, @NonNull Queue<@NonNull String> inputQueue)
     
    @NonNull List<@NonNull String>
    suggestions(@NonNull cloud.commandframework.context.CommandContext<C> context, @NonNull String input)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface cloud.commandframework.arguments.parser.ArgumentParser

    getRequestedArgumentCount, map
  • Constructor Details

    • StringParser

      public StringParser(NotQuests main, Variable<?> variable)
      Construct a new String parser
  • Method Details

    • parse

      public @NonNull cloud.commandframework.arguments.parser.ArgumentParseResult<String> parse(@NonNull cloud.commandframework.context.CommandContext<C> context, @NonNull Queue<@NonNull String> inputQueue)
      Specified by:
      parse in interface cloud.commandframework.arguments.parser.ArgumentParser<C,String>
    • isContextFree

      public boolean isContextFree()
      Specified by:
      isContextFree in interface cloud.commandframework.arguments.parser.ArgumentParser<C,String>
    • suggestions

      public @NonNull List<@NonNull String> suggestions(@NonNull cloud.commandframework.context.CommandContext<C> context, @NonNull String input)
      Specified by:
      suggestions in interface cloud.commandframework.arguments.parser.ArgumentParser<C,String>