Class GogoCommandGroup

    • Constructor Summary

      Constructors 
      Constructor Description
      GogoCommandGroup​(java.lang.String name, CommandRegistry registry)
      Creates a new GogoCommandGroup wrapping the given registry.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<Command> commands()
      Returns all commands in this group.
      java.lang.String name()
      Returns the name of this command group.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GogoCommandGroup

        public GogoCommandGroup​(java.lang.String name,
                                CommandRegistry registry)
        Creates a new GogoCommandGroup wrapping the given registry.
        Parameters:
        name - the group name
        registry - the command registry to wrap
    • Method Detail

      • name

        public java.lang.String name()
        Description copied from interface: CommandGroup
        Returns the name of this command group.

        The default implementation returns the simple class name.

        Specified by:
        name in interface CommandGroup
        Returns:
        the group name
      • commands

        public java.util.Collection<Command> commands()
        Description copied from interface: CommandGroup
        Returns all commands in this group.
        Specified by:
        commands in interface CommandGroup
        Returns:
        the collection of commands, never null