Class Macros


  • public class Macros
    extends java.lang.Object
    Manages macro expansion in command strings.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String expandMacros​(@NotNull 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
    • Constructor Detail

      • Macros

        public Macros​(@NotNull
                      @NotNull CrossfireServerConnection crossfireServerConnection)
        Creates a new instance.
        Parameters:
        crossfireServerConnection - the crossfire server connection to track
    • Method Detail

      • expandMacros

        @NotNull
        public @NotNull java.lang.String expandMacros​(@NotNull
                                                      @NotNull java.lang.String string)
        Expands all macro references.
        Parameters:
        string - the string to expand
        Returns:
        the expanded string