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