// @@author A0130195M

package jfdi.logic.commands;

import jfdi.logic.events.InvalidCommandEvent;
import jfdi.logic.interfaces.Command;
import jfdi.parser.Constants.CommandType;

import java.util.Optional;

/**
 * @author Liu Xinan
 */
public class InvalidCommand extends Command {

    private String inputString;
    private CommandType commandType;

    private InvalidCommand(Builder builder) {
        this.inputString = builder.inputString;
        this.commandType = builder.commandType;
    }

    public static class Builder {

        String inputString = "";
        CommandType commandType = null;

        public Builder setInputString(String inputString) {
            this.inputString = inputString;
            return this;
        }

        public Builder setCommandType(CommandType commandType) {
            this.commandType = commandType;
            return this;
        }

        public InvalidCommand build() {
            return new InvalidCommand(this);
        }

    }

    @Override
    public void execute() {
        // Invalid command always fail.
        eventBus.post(new InvalidCommandEvent(inputString, commandType));
    }

    @Override
    public void undo() {
        assert false;
    }

}

@@ -985,32 +985,181 @@
       %7D%0A%0A    %7D%0A%0A
+    public String getInputString() %7B%0A        return inputString;%0A    %7D%0A%0A    public CommandType getCommandType() %7B%0A        return commandType;%0A    %7D%0A%0A
     @Override%0A  

Add getters to `InvalidCommand`