public class TestableAbstractCustomLintingRule extends AbstractCustomLintingRule
AbstractCustomLintingRule for testing purposes.| Modifier and Type | Class and Description |
|---|---|
class |
TestableAbstractCustomLintingRule.TestableParseTreeListener
An implementation of the
C4BaseListener for the sake of the test implemntation. |
| Modifier and Type | Field and Description |
|---|---|
static String |
THROW_ASSERT_ON_SYNTAX_ERROR_PARAMETER_NAME
The name of the parameter that enables the current rule to throw
AssertionError on syntax erors. |
| Modifier | Constructor and Description |
|---|---|
protected |
TestableAbstractCustomLintingRule(RuleParameters parameters)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Class<? extends org.antlr.v4.runtime.Parser>> |
acceptableParsersTypes() |
Optional<? extends org.antlr.v4.runtime.tree.ParseTreeListener> |
createParseTreeListener(org.thewonderlemming.c4plantuml.commons.Reporter reporter,
Class<? extends org.antlr.v4.runtime.Parser> parser) |
static File |
getReportFile()
Returns the file that holds the reports made by the current rule.
|
Optional<org.antlr.v4.runtime.tree.ParseTree> |
selectParseTree(org.antlr.v4.runtime.Parser parser) |
void |
wrapUp() |
clearSyntaxErrors, getLogger, getParameters, getSyntaxErrors, reportSyntaxErrorpublic static final String THROW_ASSERT_ON_SYNTAX_ERROR_PARAMETER_NAME
AssertionError on syntax erors.protected TestableAbstractCustomLintingRule(RuleParameters parameters)
parameters - the RuleParameters POJO to configure the current rule.public static File getReportFile()
public Set<Class<? extends org.antlr.v4.runtime.Parser>> acceptableParsersTypes()
acceptableParsersTypes in class AbstractLintingRulepublic Optional<? extends org.antlr.v4.runtime.tree.ParseTreeListener> createParseTreeListener(org.thewonderlemming.c4plantuml.commons.Reporter reporter, Class<? extends org.antlr.v4.runtime.Parser> parser)
createParseTreeListener in class AbstractLintingRulepublic Optional<org.antlr.v4.runtime.tree.ParseTree> selectParseTree(org.antlr.v4.runtime.Parser parser)
selectParseTree in class AbstractLintingRulepublic void wrapUp()
wrapUp in class AbstractLintingRuleCopyright © 2020. All rights reserved.