12345678910111213141516171819202122232425 |
- import { Command } from './command';
- export class Case extends Command {
- constructor (expression) {
- super();
- this.expression = expression;
- /**
- * @type {Command[]}
- */
- this.commands = [];
- }
- /**
- *
- * @param {Command[]} commands
- */
- setCommands (commands) {
- this.commands = commands;
- }
- get isDefault () {
- return this.expression === null;
- }
- }
|