2 * @fileoverview Define the abstract class about cursors which manipulate another cursor.
3 * @author Toru Nagashima
7 //------------------------------------------------------------------------------
9 //------------------------------------------------------------------------------
11 const Cursor = require("./cursor");
13 //------------------------------------------------------------------------------
15 //------------------------------------------------------------------------------
18 * The abstract class about cursors which manipulate another cursor.
20 module.exports = class DecorativeCursor extends Cursor {
23 * Initializes this cursor.
24 * @param {Cursor} cursor The cursor to be decorated.
33 const retv = this.cursor.moveNext();
35 this.current = this.cursor.current;