net.sourceforge.plantuml.command
Class SingleLineCommand2<S extends Diagram>
java.lang.Object
net.sourceforge.plantuml.command.SingleLineCommand2<S>
- All Implemented Interfaces:
- Command<S>
- Direct Known Subclasses:
- CommandActivity3, CommandActivityLegacy1, CommandArrow, CommandArrow3, CommandCreateClass, CommandCreateElementFull, CommandCreateEntityObject, CommandCreatePackageState, CommandCreatePostIt, CommandCreateState, CommandCreateState2, CommandElse3, CommandElseIf2, CommandElseLegacy1, CommandEndif3, CommandExoArrowLeft, CommandExoArrowRight, CommandFork3, CommandForkAgain3, CommandForkEnd3, CommandGroup3, CommandGroupEnd3, CommandHideShow, CommandHideShow3, CommandHideShowSpecificClass, CommandIf, CommandIf2, CommandIf4, CommandIfLegacy1, CommandKill3, CommandLineSimple, CommandLink, CommandLink3, CommandLinkActivity, CommandLinkActivity2, CommandLinkClass, CommandLinkElement, CommandLinkLollipop, CommandLinkState, CommandNamespace, CommandNewpage, CommandNote3, CommandPackage, CommandPackageWithUSymbol, CommandParticipant, CommandReferenceOverSeveral, CommandRepeat3, CommandRepeatWhile3, CommandSplit3, CommandSplitAgain3, CommandSplitEnd3, CommandSpriteFile, CommandStart3, CommandStop3, CommandStopLegacy1, CommandSwimlane, CommandSwimlane2, CommandWhile3, CommandWhileEnd3
public abstract class SingleLineCommand2<S extends Diagram>
- extends Object
- implements Command<S>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleLineCommand2
public SingleLineCommand2(RegexConcat pattern)
getDescription
public String[] getDescription()
- Specified by:
getDescription
in interface Command<S extends Diagram>
isValid
public final CommandControl isValid(List<String> lines)
- Specified by:
isValid
in interface Command<S extends Diagram>
isCommandForbidden
protected boolean isCommandForbidden()
actionIfCommandValid
protected void actionIfCommandValid()
execute
public final CommandExecutionResult execute(S system,
List<String> lines)
- Specified by:
execute
in interface Command<S extends Diagram>
isForbidden
protected boolean isForbidden(String line)
executeArg
protected abstract CommandExecutionResult executeArg(S system,
RegexResult arg)
Copyright © 2014. All Rights Reserved.