public class NoOrphanAliasInBoundariesRule extends AbstractC4Rule
| Constructor and Description |
|---|
NoOrphanAliasInBoundariesRule(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. |
void |
wrapUp()
Verifies that the collected aliases in use in boundaries are all declared.
|
acceptableParsersTypes, selectParseTreeclearSyntaxErrors, getLogger, getParameters, getSyntaxErrors, reportSyntaxErrorpublic NoOrphanAliasInBoundariesRule(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 NoOrphanAliasInBoundariesListener 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.public void wrapUp()
wrapUp in class AbstractC4RuleCopyright © 2020. All rights reserved.