public abstract class AbstractC4Rule extends AbstractLintingRule
AbstractLintingRule that provides default support for C4 levels 1 to 3.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractC4Rule(RuleParameters parameters)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Class<? extends org.antlr.v4.runtime.Parser>> |
acceptableParsersTypes()
Returns a list of supported ANTLR4
Parser. |
Optional<org.antlr.v4.runtime.tree.ParseTree> |
selectParseTree(org.antlr.v4.runtime.Parser parser)
Selects a
ParseTree to process, given a Parser grammar. |
void |
wrapUp()
A call that takes place after the parsing process of a file.
|
clearSyntaxErrors, createParseTreeListener, getLogger, getParameters, getSyntaxErrors, reportSyntaxErrorprotected AbstractC4Rule(RuleParameters parameters)
parameters - the RuleParameters to pass to control the behavior of the rule.public Set<Class<? extends org.antlr.v4.runtime.Parser>> acceptableParsersTypes()
AbstractLintingRuleParser.acceptableParsersTypes in class AbstractLintingRuleParser.public Optional<org.antlr.v4.runtime.tree.ParseTree> selectParseTree(org.antlr.v4.runtime.Parser parser)
AbstractLintingRuleParseTree to process, given a Parser grammar.selectParseTree in class AbstractLintingRuleparser - the Parser instance to parse the current grammar.ParseTree that matches the current grammar.public void wrapUp()
AbstractLintingRuleImplements that call if you need post processing at the end of the linting operation.
wrapUp in class AbstractLintingRuleCopyright © 2020. All rights reserved.