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, CommandArrowCrossX, CommandBar2, CommandCreateClass, CommandCreateElementFull, CommandCreateEntityObject, CommandCreatePackageState, CommandCreatePostIt, CommandCreateState, CommandCreateState2, CommandElse2, CommandEnd2, CommandEndif2, CommandGoto2, CommandHideShow, CommandHideShow3, CommandIf, CommandIf2, CommandLabel2, CommandLineSimple, CommandLink, CommandLinkActivity, CommandLinkClass, CommandLinkElement, CommandLinkLollipop, CommandLinkState, CommandNamespace, CommandPackage, CommandPackageWithUSymbol, CommandParticipant, CommandReferenceOverSeveral, CommandSpriteFile
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(RegexResult 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 © 2012. All Rights Reserved.