RuleCloseWithoutCloseableRule, CompareToWithoutComparableRulepublic abstract class AbstractEnhanceableAstVisitorRule extends AbstractAstVisitorRule
| Modifier and Type | Field | Description |
|---|---|---|
static String |
ENHANCED_MODE_SYSTEM_PROPERTY |
Holds the name of the system property which allows to control the
enhancedMode property. |
CLOSURE_TEXT, DEFAULT_CONST_NAME, DEFAULT_FIELD_NAME, DEFAULT_TEST_CLASS_NAMES, DEFAULT_TEST_FILES, DEFAULT_VAR_NAME| Constructor | Description |
|---|---|
AbstractEnhanceableAstVisitorRule() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getCompilerPhase() |
|
boolean |
isEnhancedMode() |
|
void |
setEnhancedMode(boolean enhancedMode) |
applyTo, getApplyToClassNames, getAstVisitor, getAstVisitorClass, getDoNotApplyToClassNames, setApplyToClassNames, setDoNotApplyToClassNames, shouldApplyThisRuleToapplyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getApplyToFileNames, getApplyToFilesMatching, getDescription, getDoNotApplyToFileNames, getDoNotApplyToFilesMatching, getName, getPriority, getViolationMessage, isEnabled, isReady, setApplyToFileNames, setApplyToFilesMatching, setDescription, setDoNotApplyToFileNames, setDoNotApplyToFilesMatching, setEnabled, setName, setPriority, setViolationMessage, toString, validatepublic static final String ENHANCED_MODE_SYSTEM_PROPERTY
enhancedMode property.public boolean isEnhancedMode()
public void setEnhancedMode(boolean enhancedMode)
public int getCompilerPhase()
getCompilerPhase in interface RulegetCompilerPhase in class AbstractRulePhases)
of the AST of the SourceCode
handed to the rule via AbstractRule.applyTo(SourceCode sourceCode)Copyright © 2019. All rights reserved.