Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.commands.CommandExpander Class Reference

Expands a command (or list of commands) into a sequence of Commands to execute. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.commands.CommandExpander:

Static Public Member Functions

static Collection< CommandExecexpand (@NotNull final CharSequence commandList, @NotNull final Commands commands)
 Expands a command list into a sequence of Commands to execute. More...
 

Private Member Functions

 CommandExpander ()
 Private constructor to prevent instantiation. More...
 

Static Private Attributes

static final Pattern PATTERN_SEPARATOR = Pattern.compile(" *; *")
 The Pattern for splitting command sequences. More...
 
static final Pattern PATTERN_SPACES = Pattern.compile(" +")
 The Pattern for splitting commands from command arguments. More...
 

Detailed Description

Expands a command (or list of commands) into a sequence of Commands to execute.

Author
Andreas Kirschbaum

Definition at line 34 of file CommandExpander.java.

Constructor & Destructor Documentation

◆ CommandExpander()

com.realtime.crossfire.jxclient.commands.CommandExpander.CommandExpander ( )
private

Private constructor to prevent instantiation.

Definition at line 51 of file CommandExpander.java.

Member Function Documentation

◆ expand()

static Collection<CommandExec> com.realtime.crossfire.jxclient.commands.CommandExpander.expand ( @NotNull final CharSequence  commandList,
@NotNull final Commands  commands 
)
static

Expands a command list into a sequence of Commands to execute.

Parameters
commandListthe commands to split
commandsthe commands to use
Returns
the list of commands

Definition at line 61 of file CommandExpander.java.

References com.realtime.crossfire.jxclient.commands.Command.allArguments().

Referenced by com.realtime.crossfire.jxclient.commands.CommandExpanderTest.check(), and com.realtime.crossfire.jxclient.commands.CommandExecutorImpl.executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ PATTERN_SEPARATOR

final Pattern com.realtime.crossfire.jxclient.commands.CommandExpander.PATTERN_SEPARATOR = Pattern.compile(" *; *")
staticprivate

The Pattern for splitting command sequences.

Definition at line 40 of file CommandExpander.java.

◆ PATTERN_SPACES

final Pattern com.realtime.crossfire.jxclient.commands.CommandExpander.PATTERN_SPACES = Pattern.compile(" +")
staticprivate

The Pattern for splitting commands from command arguments.

Definition at line 46 of file CommandExpander.java.


The documentation for this class was generated from the following file: