Class CommandLabel
java.lang.Object
net.sourceforge.plantuml.command.SingleLineCommand2<ActivityDiagram3>
net.sourceforge.plantuml.activitydiagram3.command.CommandLabel
- All Implemented Interfaces:
Command<ActivityDiagram3>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommandExecutionResultexecuteArg(ActivityDiagram3 diagram, LineLocation location, RegexResult arg, ParserPass currentPass) protected StringexplainArg(LineLocation location, RegexResult arg) The same answer asCommand.mandatoryFirstTokensSlow(), written by hand so that it costs nothing to get.Methods inherited from class net.sourceforge.plantuml.command.SingleLineCommand2
execute, explain, finalVerification, isEligibleFor, isForbidden, isValid, mandatoryFirstTokensSlow, syntaxWithFinalBracketMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sourceforge.plantuml.command.Command
isCommandForbidden, mandatoryFirstTokens
-
Constructor Details
-
CommandLabel
public CommandLabel()
-
-
Method Details
-
explainArg
- Overrides:
explainArgin classSingleLineCommand2<ActivityDiagram3>
-
executeArg
protected CommandExecutionResult executeArg(ActivityDiagram3 diagram, LineLocation location, RegexResult arg, ParserPass currentPass) - Specified by:
executeArgin classSingleLineCommand2<ActivityDiagram3>
-
mandatoryFirstTokensFast
Description copied from interface:CommandThe same answer asCommand.mandatoryFirstTokensSlow(), written by hand so that it costs nothing to get. Returningnull(FirstTokens.ANYTHING) means "I can match any line" and keeps the command in the list tried for every token nobody claimed. That is the safe answer: a command that declares too much only costs the regex attempts it could have skipped, while one that declares too few of its tokens stops being reachable for the ones it left out. A non-null set is never empty in practice: it would mean the command matches no line at all.
-