public abstract class SingleLineCommand2<S extends Diagram> extends java.lang.Object implements Command<S>
Constructor and Description |
---|
SingleLineCommand2(boolean doTrim,
IRegex pattern) |
SingleLineCommand2(IRegex pattern) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionIfCommandValid() |
CommandExecutionResult |
execute(S system,
BlocLines lines) |
protected abstract CommandExecutionResult |
executeArg(S system,
LineLocation location,
RegexResult arg) |
java.lang.String[] |
getDescription() |
protected boolean |
isCommandForbidden() |
protected boolean |
isForbidden(java.lang.CharSequence line) |
CommandControl |
isValid(BlocLines lines) |
boolean |
syntaxWithFinalBracket() |
public SingleLineCommand2(IRegex pattern)
public SingleLineCommand2(boolean doTrim, IRegex 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, LineLocation location, RegexResult arg)
Copyright © 2020. All Rights Reserved.