groovy.lang.GroovyObject, RuleDuplicateImportRule, MisorderedStaticImportsRule, NoWildcardImportsRulepublic abstract class AbstractImportRule extends AbstractRule implements groovy.lang.GroovyObject
| Modifier and Type | Field | Description |
|---|---|---|
static String |
NON_STATIC_IMPORT_PATTERN |
|
static String |
STATIC_IMPORT_PATTERN |
| Constructor | Description |
|---|---|
AbstractImportRule() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
eachImportLine(SourceCode sourceCode,
groovy.lang.Closure closure) |
|
protected int |
findLineNumberOfFirstClassDeclaration(SourceCode sourceCode) |
|
groovy.lang.MetaClass |
getMetaClass() |
|
Object |
getProperty(String property) |
|
Object |
invokeMethod(String method,
Object arguments) |
|
void |
setMetaClass(groovy.lang.MetaClass mc) |
|
void |
setProperty(String property,
Object value) |
applyTo, applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getApplyToFileNames, getApplyToFilesMatching, getCompilerPhase, getDescription, getDoNotApplyToFileNames, getDoNotApplyToFilesMatching, getName, getPriority, getViolationMessage, isEnabled, isReady, setApplyToFileNames, setApplyToFilesMatching, setDescription, setDoNotApplyToFileNames, setDoNotApplyToFilesMatching, setEnabled, setName, setPriority, setViolationMessage, toString, validatepublic static final String NON_STATIC_IMPORT_PATTERN
public static final String STATIC_IMPORT_PATTERN
public 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.GroovyObjectprotected int findLineNumberOfFirstClassDeclaration(SourceCode sourceCode)
protected void eachImportLine(SourceCode sourceCode, groovy.lang.Closure closure)
Copyright © 2019. All rights reserved.