public class CommandExpander
extends java.lang.Object
Commands
to execute.Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
PATTERN_SEPARATOR
The
Pattern for splitting command sequences. |
private static java.util.regex.Pattern |
PATTERN_SPACES
The
Pattern for splitting commands from command arguments. |
Modifier | Constructor and Description |
---|---|
private |
CommandExpander()
Private constructor to prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<CommandExec> |
expand(java.lang.CharSequence commandList,
Commands commands)
Expands a command list into a sequence of
Commands to
execute. |
@NotNull private static final java.util.regex.Pattern PATTERN_SEPARATOR
Pattern
for splitting command sequences.@NotNull private static final java.util.regex.Pattern PATTERN_SPACES
Pattern
for splitting commands from command arguments.private CommandExpander()
public static java.util.Collection<CommandExec> expand(@NotNull java.lang.CharSequence commandList, @NotNull Commands commands)
Commands
to
execute.commandList
- the commands to splitcommands
- the commands to use