 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.textinput;
29 import java.util.regex.Pattern;
30 import org.jetbrains.annotations.NotNull;
99 if (commandString.equals(
"-e")) {
102 if (commandString.startsWith(
"-e ")) {
115 public String
encode(@NotNull
final String command) {
126 public String
decode(@NotNull
final String command) {
final Macros macros
The Macros instance to use.
final CommandCallback commandCallback
The CommandCallback to use.
String encode(@NotNull final String command)
Encodes a key binding if necessary.
Factory for creating GUICommand instances from string representation.
A GUICommand which executes a Crossfire command.
static final String TRAILING_ESCAPE
Character appended to lines ending with whitespace.
Manages macro expansion in command strings.
GUICommand createCommand(@NotNull final String commandString)
Creates a new GUICommand instance from string representation.
static String trimLeading(@NotNull final CharSequence str)
Removes leading whitespace from a string.
GUICommand createCommandDecode(@NotNull final String encodedCommandString)
Creates a new GUICommand instance from string representation.
static final Pattern PATTERN_ENCODE
Pattern matching lines that need a TRAILING_ESCAPE appended.
final CommandExecutor commandExecutor
The CommandExecutor instance to use.
GUICommandFactoryImpl(@NotNull final CommandCallback commandCallback, @NotNull final CommandExecutor commandExecutor, @NotNull final Macros macros)
Creates a new instance.
Interface that defines callback functions needed by commands.
Utility class for string manipulation.
A GUICommand which activates the command input field.
Factory for creating GUICommand instances from string representation.
String decode(@NotNull final String command)
Decodes a key binding if necessary.