public class AliasesShouldFollowStandardConventionRule extends AbstractC4Rule
| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS_DEFAULT_FORMAT
The default regular expression to use for the aliases if no format is passed as a parameter of the rule.
|
| Constructor and Description |
|---|
AliasesShouldFollowStandardConventionRule(RuleParameters parameters)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<? extends org.antlr.v4.runtime.tree.ParseTreeListener> |
createParseTreeListener(org.thewonderlemming.c4plantuml.commons.Reporter reporter,
Class<? extends org.antlr.v4.runtime.Parser> parserType)
Returns a
ParseTreeListener given a Parser type. |
static String |
getAliasFormatParameterName()
Returns the name of the parameter that needs to be set to override the default value of the aliases regular
expression
ALIAS_DEFAULT_FORMAT. |
acceptableParsersTypes, selectParseTree, wrapUpclearSyntaxErrors, getLogger, getParameters, getSyntaxErrors, reportSyntaxErrorpublic static final String ALIAS_DEFAULT_FORMAT
public AliasesShouldFollowStandardConventionRule(RuleParameters parameters)
parameters - the RuleParameters that are passed to control the behavior of this rule.public static String getAliasFormatParameterName()
ALIAS_DEFAULT_FORMAT.public Optional<? extends org.antlr.v4.runtime.tree.ParseTreeListener> createParseTreeListener(org.thewonderlemming.c4plantuml.commons.Reporter reporter, Class<? extends org.antlr.v4.runtime.Parser> parserType)
ParseTreeListener given a Parser type.
The Reporter can be passed at the ParseTreeListener if needed.
Creates a AliasesShouldFollowStandardConventionListener instance as a listener.
createParseTreeListener in class AbstractLintingRulereporter - the Reporter to pass to the new ParseTreeListener.parserType - the Parser for the current C4 grammar.ParseTreeListener that matches the Parser grammar.Copyright © 2020. All rights reserved.