public class UnusedPrivateFieldRule extends AbstractSharedAstVisitorRule implements groovy.lang.GroovyObject
CLOSURE_TEXT, DEFAULT_CONST_NAME, DEFAULT_FIELD_NAME, DEFAULT_TEST_CLASS_NAMES, DEFAULT_TEST_FILES, DEFAULT_VAR_NAME| Constructor and Description |
|---|
UnusedPrivateFieldRule() |
| Modifier and Type | Method and Description |
|---|---|
protected AstVisitor |
getAstVisitor(SourceCode sourceCode)
Subclasses can override to provide an AstVisitor with SourceCode or AST-specific initialization.
|
String |
getIgnoreFieldNames() |
groovy.lang.MetaClass |
getMetaClass() |
String |
getName() |
int |
getPriority() |
Object |
getProperty(String property) |
protected List<Violation> |
getViolations(AstVisitor visitor,
SourceCode sourceCode) |
Object |
invokeMethod(String method,
Object arguments) |
void |
setIgnoreFieldNames(String value) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setName(String value)
Set the unique name for this rule
|
void |
setPriority(int value)
Set the priority for this rule
|
void |
setProperty(String property,
Object value) |
applyTo, applyVisitorgetApplyToClassNames, getAstVisitor, getAstVisitorClass, getDoNotApplyToClassNames, setApplyToClassNames, setDoNotApplyToClassNames, shouldApplyThisRuleToapplyTo, createViolation, createViolation, createViolation, createViolation, createViolation, createViolationForImport, createViolationForImport, createViolationForImport, getApplyToFileNames, getApplyToFilesMatching, getCompilerPhase, getDescription, getDoNotApplyToFileNames, getDoNotApplyToFilesMatching, getViolationMessage, isEnabled, isReady, setApplyToFileNames, setApplyToFilesMatching, setDescription, setDoNotApplyToFileNames, setDoNotApplyToFilesMatching, setEnabled, setViolationMessage, toString, validatepublic groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic String getName()
getName in interface RulegetName in class AbstractRulepublic void setName(String value)
AbstractRulesetName in class AbstractRulevalue - - the name for this rule; this should be uniquepublic int getPriority()
getPriority in interface RulegetPriority in class AbstractRulepublic void setPriority(int value)
AbstractRulesetPriority in class AbstractRulevalue - - the priority of this rule, between 1 (highest priority) and 3 (lowest priority), inclusive.public String getIgnoreFieldNames()
public void setIgnoreFieldNames(String value)
protected AstVisitor getAstVisitor(SourceCode sourceCode)
AbstractSharedAstVisitorRulegetAstVisitor in class AbstractSharedAstVisitorRuleprotected List<Violation> getViolations(AstVisitor visitor, SourceCode sourceCode)
getViolations in class AbstractSharedAstVisitorRuleCopyright © 2021. All rights reserved.