public abstract class SingleLineCommand2<S extends Diagram> extends Object implements Command<S>
| Constructor and Description |
|---|
SingleLineCommand2(RegexConcat pattern) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionIfCommandValid() |
CommandExecutionResult |
execute(S system,
BlocLines lines) |
protected abstract CommandExecutionResult |
executeArg(S system,
RegexResult arg) |
String[] |
getDescription() |
protected boolean |
isCommandForbidden() |
protected boolean |
isForbidden(CharSequence line) |
CommandControl |
isValid(BlocLines lines) |
public SingleLineCommand2(RegexConcat pattern)
public String[] getDescription()
getDescription in interface Command<S extends Diagram>public final CommandControl isValid(BlocLines lines)
protected boolean isCommandForbidden()
protected void actionIfCommandValid()
public final CommandExecutionResult execute(S system, BlocLines lines)
protected boolean isForbidden(CharSequence line)
protected abstract CommandExecutionResult executeArg(S system, RegexResult arg)
Copyright © 2016. All Rights Reserved.