Class UUIDArgument.UUIDParser<C>

  • All Implemented Interfaces:
    ArgumentParser<C,​java.util.UUID>
    Enclosing class:
    UUIDArgument<C>

    public static final class UUIDArgument.UUIDParser<C>
    extends java.lang.Object
    implements ArgumentParser<C,​java.util.UUID>
    • Constructor Summary

      Constructors 
      Constructor Description
      UUIDParser()  
    • Method Summary

      Modifier and Type Method Description
      boolean isContextFree()
      Check whether or not this argument parser is context free.
      @NonNull ArgumentParseResult<java.util.UUID> parse​(@NonNull CommandContext<C> commandContext, @NonNull java.util.Queue<@NonNull java.lang.String> inputQueue)
      Parse command input into a command result
      • Methods inherited from class java.lang.Object

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

      • UUIDParser

        public UUIDParser()
    • Method Detail

      • parse

        public @NonNull ArgumentParseResult<java.util.UUID> parse​(@NonNull CommandContext<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.util.UUID>
        Parameters:
        commandContext - Command context
        inputQueue - The queue of arguments
        Returns:
        Parsed command result
      • isContextFree

        public boolean isContextFree()
        Description copied from interface: ArgumentParser
        Check whether or not this argument parser is context free. A context free parser will not use the provided command context, and so supports impromptu parsing
        Specified by:
        isContextFree in interface ArgumentParser<C,​java.util.UUID>
        Returns:
        true if the parser is context free, else false