net.sourceforge.plantuml.command.CommandMultilinesComment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.command;
import net.sourceforge.plantuml.core.Diagram;
import net.sourceforge.plantuml.utils.BlocLines;
public class CommandMultilinesComment extends CommandMultilines {
public static final String COMMENT_MULTILINE_START = "^[%s]*/[%q]([^%q]|[%q][^/])*$";
public static final String COMMENT_MULTILINE_END = "^([^%q]|[%q][^/])*[%q]/[%s]*$";
public static final String COMMENT_SINGLE_LINE = "^[%s]*([%q].*||/[%q].*[%q]/[%s]*)$";
public static final String INNER_COMMENT = "/[%q].*?[%q]/";
private CommandMultilinesComment() {
super(COMMENT_MULTILINE_START);
}
@Override
public String getPatternEnd() {
return COMMENT_MULTILINE_END;
}
public CommandExecutionResult execute(final Diagram diagram, BlocLines lines) {
return CommandExecutionResult.ok();
}
}