public abstract class CommandMultilines2<S extends Diagram> extends java.lang.Object implements Command<S>
| Constructor and Description |
|---|
CommandMultilines2(IRegex patternStart,
MultilinesStrategy strategy) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionIfCommandValid() |
CommandExecutionResult |
execute(S system,
BlocLines lines) |
protected abstract CommandExecutionResult |
executeNow(S system,
BlocLines lines) |
java.lang.String[] |
getDescription() |
abstract java.lang.String |
getPatternEnd() |
protected IRegex |
getStartingPattern() |
protected boolean |
isCommandForbidden() |
CommandControl |
isValid(BlocLines lines) |
boolean |
syntaxWithFinalBracket() |
public CommandMultilines2(IRegex patternStart, MultilinesStrategy strategy)
public boolean syntaxWithFinalBracket()
public abstract java.lang.String getPatternEnd()
public java.lang.String[] getDescription()
getDescription in interface Command<S extends Diagram>public final CommandControl isValid(BlocLines lines)
public final CommandExecutionResult execute(S system, BlocLines lines)
protected abstract CommandExecutionResult executeNow(S system, BlocLines lines) throws NoSuchColorException
NoSuchColorExceptionprotected boolean isCommandForbidden()
protected void actionIfCommandValid()
protected final IRegex getStartingPattern()