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:
- CommandActivity3, CommandArrow, CommandArrowCrossX, CommandCreateClass, CommandCreateElementFull, CommandCreateEntityObject, CommandCreatePackageState, CommandCreatePostIt, CommandCreateState, CommandCreateState2, CommandElse3, CommandEndif3, CommandFork3, CommandForkAgain3, CommandForkEnd3, CommandGroup3, CommandGroupEnd3, CommandHideShow, CommandHideShow3, CommandIf, CommandIf2, CommandIf3, CommandIf4, CommandKill3, CommandLineSimple, CommandLink, CommandLinkActivity, CommandLinkActivity2, CommandLinkClass, CommandLinkElement, CommandLinkLollipop, CommandLinkState, CommandNamespace, CommandPackage, CommandPackageWithUSymbol, CommandParticipant, CommandReferenceOverSeveral, CommandRepeat3, CommandRepeatWhile3, CommandSpriteFile, CommandStart3, CommandStop3, CommandWhile3, CommandWhileEnd3
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 © 2013. All Rights Reserved.