public abstract class SingleLineCommand2<S extends Diagram> extends java.lang.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) |
java.lang.String[] |
getDescription() |
protected boolean |
isCommandForbidden() |
protected boolean |
isForbidden(java.lang.CharSequence line) |
CommandControl |
isValid(BlocLines lines) |
boolean |
syntaxWithFinalBracket() |
public SingleLineCommand2(RegexConcat pattern)
public boolean syntaxWithFinalBracket()
public java.lang.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(java.lang.CharSequence line)
protected abstract CommandExecutionResult executeArg(S system, RegexResult arg)