Class GUICommandFactoryImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull GUICommand createCommand​(@NotNull java.lang.String commandString)
      Creates a new GUICommand instance from string representation.
      GUICommand createCommandDecode​(@NotNull java.lang.String encodedCommandString)
      Creates a new GUICommand instance from string representation.
      @NotNull java.lang.String decode​(@NotNull java.lang.String command)
      Decodes a key binding if necessary.
      @NotNull java.lang.String encode​(@NotNull java.lang.String command)
      Encodes a key binding if necessary.
      • Methods inherited from class java.lang.Object

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

      • GUICommandFactoryImpl

        public GUICommandFactoryImpl​(@NotNull
                                     @NotNull CommandCallback commandCallback,
                                     @NotNull
                                     @NotNull CommandExecutor commandExecutor,
                                     @NotNull
                                     @NotNull Macros macros)
        Creates a new instance.
        Parameters:
        commandCallback - the command callback to use
        commandExecutor - the command executor instance to use
        macros - the macros instance to use
    • Method Detail

      • createCommandDecode

        public GUICommand createCommandDecode​(@NotNull
                                              @NotNull java.lang.String encodedCommandString)
        Creates a new GUICommand instance from string representation.
        Specified by:
        createCommandDecode in interface GUICommandFactory
        Parameters:
        encodedCommandString - the command string representation
        Returns:
        the new command instance
      • createCommand

        @NotNull
        public @NotNull GUICommand createCommand​(@NotNull
                                                 @NotNull java.lang.String commandString)
        Creates a new GUICommand instance from string representation.
        Specified by:
        createCommand in interface GUICommandFactory
        Parameters:
        commandString - the command string representation
        Returns:
        the new command instance
      • encode

        @NotNull
        public @NotNull java.lang.String encode​(@NotNull
                                                @NotNull java.lang.String command)
        Encodes a key binding if necessary.
        Specified by:
        encode in interface GUICommandFactory
        Parameters:
        command - the key binding
        Returns:
        the encoded key binding
      • decode

        @NotNull
        public @NotNull java.lang.String decode​(@NotNull
                                                @NotNull java.lang.String command)
        Decodes a key binding if necessary.
        Specified by:
        decode in interface GUICommandFactory
        Parameters:
        command - the key binding
        Returns:
        the decoded key binding