/* An instance of this class represents a command by which a line of text ** is inserted into a document. ** ** Authors: Gemini, R. McCloskey, ** Collaborated with: ... ** Known defects: ... */ class InsertCommand implements EditCommand { // instance variables // ------------------ // MISSING DECLARATIONS // constructor // ----------- /* Establishes this as being a command that inserts into a document ** the specified text at the specified position. */ public InsertCommand(int lineNum, String text) { // STUB } // observers // --------- @Override public String getName() { return "INSERT"; } @Override /* Returns a string identifying the line of text that would be inserted ** as a result of executing this command and the location at which it ** would be inserted (e.g., line #23). */ public String toString() { return ""; // STUB } // operations // ---------- @Override /* Applies this command to the specified document. */ public void execute(Document doc) { // STUB } @Override /* Reverses the effects of this command within the specified document. */ public void undo(Document doc) { // STUB } }