public class AliasesShouldBeUniqueRule extends AbstractC4Rule
| Constructor and Description |
|---|
AliasesShouldBeUniqueRule(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. |
acceptableParsersTypes, selectParseTree, wrapUpclearSyntaxErrors, getLogger, getParameters, getSyntaxErrors, reportSyntaxErrorpublic AliasesShouldBeUniqueRule(RuleParameters parameters)
The RuleParameters object that is passed to the class is empty for now as there is no need for any
custom parameter.
parameters - the RuleParameters object that is being passed to the rule.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 AliasesShouldBeUniqueListener 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.