net.sourceforge.plantuml.command
Class SingleLineCommand2<S extends PSystem>
java.lang.Object
net.sourceforge.plantuml.command.SingleLineCommand2<S>
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- CommandArrow, CommandBar2, CommandCreateEntityClass2, CommandCreatePostIt, CommandElse2, CommandEnd2, CommandEndif2, CommandGoto2, CommandHideShow, CommandHideShow3, CommandIf, CommandIf2, CommandLabel2, CommandLinkActivity, CommandLinkClass2, CommandLinkComponent2, CommandLinkLollipop2, CommandLinkState2, CommandLinkUsecase2, CommandParticipant, CommandReferenceOverSeveral
public abstract class SingleLineCommand2<S extends PSystem>
- extends Object
- implements Command
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleLineCommand2
public SingleLineCommand2(S system,
RegexConcat pattern)
getSystem
protected final S getSystem()
getDescription
public String[] getDescription()
- Specified by:
getDescription
in interface Command
isValid
public final CommandControl isValid(List<String> lines)
- Specified by:
isValid
in interface Command
isCommandForbidden
protected boolean isCommandForbidden()
actionIfCommandValid
protected void actionIfCommandValid()
execute
public final CommandExecutionResult execute(List<String> lines)
- Specified by:
execute
in interface Command
isForbidden
protected boolean isForbidden(String line)
executeArg
protected abstract CommandExecutionResult executeArg(Map<String,RegexPartialMatch> arg)
isDeprecated
public final boolean isDeprecated(List<String> lines)
- Specified by:
isDeprecated
in interface Command
getHelpMessageForDeprecated
public String getHelpMessageForDeprecated(List<String> lines)
- Specified by:
getHelpMessageForDeprecated
in interface Command
isDeprecated
protected boolean isDeprecated(String line)
Copyright © 2011. All Rights Reserved.