public class MisorderedStaticImportsRule extends AbstractImportRule implements groovy.lang.GroovyObject
NON_STATIC_IMPORT_PATTERN, STATIC_IMPORT_PATTERN| Constructor and Description |
|---|
MisorderedStaticImportsRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyTo(SourceCode sourceCode,
List violations)
Apply this rule to the specified source and return a list of violations (or an empty List)
|
boolean |
getComesBefore() |
groovy.lang.MetaClass |
getMetaClass() |
String |
getName() |
int |
getPriority() |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
boolean |
isComesBefore() |
void |
setComesBefore(boolean 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) |
eachImportLine, findLineNumberOfFirstClassDeclarationapplyTo, 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.GroovyObjectgetMetaClass in class AbstractImportRulepublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class AbstractImportRulepublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class AbstractImportRulepublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class AbstractImportRulepublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class AbstractImportRulepublic 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 boolean getComesBefore()
public boolean isComesBefore()
public void setComesBefore(boolean value)
public void applyTo(SourceCode sourceCode, List violations)
AbstractRuleapplyTo in class AbstractRulesourceCode - - the source to apply this rule toviolations - - the List of violations to which new violations from this rule are to be addedCopyright © 2021. All rights reserved.