public class AliasesShouldBeListedInDictionaryRule extends AbstractC4Rule
| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS_DEFAULT_DICT_FILENAME
The default dictionary filename if no filename is passed as a parameter to the rule..
|
| Constructor and Description |
|---|
AliasesShouldBeListedInDictionaryRule(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 |
getAliasDictionaryFilenameParameterName()
Returns the name of the parameter that needs to be set to override the default value of the dictionary filename
ALIAS_DEFAULT_DICT_FILENAME. |
acceptableParsersTypes, selectParseTree, wrapUpclearSyntaxErrors, getLogger, getParameters, getSyntaxErrors, reportSyntaxErrorpublic static final String ALIAS_DEFAULT_DICT_FILENAME
public AliasesShouldBeListedInDictionaryRule(RuleParameters parameters)
parameters - the RuleParameters that are passed to control the behavior of this rule.public static String getAliasDictionaryFilenameParameterName()
ALIAS_DEFAULT_DICT_FILENAME.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 AliasesShouldBeListedInDictionaryListener 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.