java.lang.Object com.realtime.crossfire.jxclient.commands.Macros
public class Macros
Manages macro expansion in command strings.
Field Summary | |
---|---|
private CrossfireDrawextinfoListener |
crossfireDrawextinfoListener
The CrossfireDrawextinfoListener for tracking tells. |
private java.util.Map<java.lang.String,java.lang.String> |
expansions
The macro expansions. |
private java.util.regex.Pattern |
macroPattern
The Pattern matching macro names. |
private static java.lang.String |
REPLY_TO
The "reply_to" macro name. |
Constructor Summary | |
---|---|
Macros(CrossfireServerConnection crossfireServerConnection)
Creates a new instance. |
Method Summary | |
---|---|
java.lang.String |
expandMacros(java.lang.String string)
Expands all macro references. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final CrossfireDrawextinfoListener crossfireDrawextinfoListener
CrossfireDrawextinfoListener
for tracking tells.
@NotNull private final java.util.Map<java.lang.String,java.lang.String> expansions
@NotNull private final java.util.regex.Pattern macroPattern
Pattern
matching macro names.
@NotNull private static final java.lang.String REPLY_TO
Constructor Detail |
---|
public Macros(@NotNull CrossfireServerConnection crossfireServerConnection)
crossfireServerConnection
- the crossfire server connection to
trackMethod Detail |
---|
@NotNull public java.lang.String expandMacros(@NotNull java.lang.String string)
string
- the string to expand