Class CommandEvent

  • All Implemented Interfaces:
    IParserEvent

    class CommandEvent
    extends java.lang.Object
    implements IParserEvent
    Represents an event to be sent to the listener.
    • Field Detail

      • command

        private final Command command
      • parameter

        private final int parameter
      • hasParameter

        private final boolean hasParameter
      • optional

        private final boolean optional
    • Constructor Detail

      • CommandEvent

        public CommandEvent​(Command command,
                            int parameter,
                            boolean hasParameter,
                            boolean optional)
        Constructor.
    • Method Detail

      • getCommand

        public Command getCommand()
        Retrieve the command represented by this event.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object