Crossfire JXClient, Trunk
|
Static Public Member Functions | |
static Collection< CommandExec > | expand (@NotNull final CharSequence commandList, @NotNull final Commands commands) |
Private Member Functions | |
CommandExpander () | |
Static Private Attributes | |
static final Pattern | PATTERN_SEPARATOR = Pattern.compile(" *; *") |
static final Pattern | PATTERN_SPACES = Pattern.compile(" +") |
Expands a command (or list of commands) into a sequence of Commands to execute.
Definition at line 35 of file CommandExpander.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 52 of file CommandExpander.java.
|
static |
Expands a command list into a sequence of Commands to execute.
commandList | the commands to split |
commands | the commands to use |
Definition at line 63 of file CommandExpander.java.
References com.realtime.crossfire.jxclient.commands.Command.allArguments(), com.realtime.crossfire.jxclient.commands.CommandExpander.PATTERN_SEPARATOR, and com.realtime.crossfire.jxclient.commands.CommandExpander.PATTERN_SPACES.
Referenced by com.realtime.crossfire.jxclient.commands.CommandExpanderTest.check(), and com.realtime.crossfire.jxclient.commands.CommandExecutorImpl.executeCommand().
|
staticprivate |
The Pattern for splitting command sequences.
Definition at line 41 of file CommandExpander.java.
Referenced by com.realtime.crossfire.jxclient.commands.CommandExpander.expand().
|
staticprivate |
The Pattern for splitting commands from command arguments.
Definition at line 47 of file CommandExpander.java.
Referenced by com.realtime.crossfire.jxclient.commands.CommandExpander.expand().