groovy.lang.GroovyObject
, Rule
DuplicateImportRule
, MisorderedStaticImportsRule
, NoWildcardImportsRule
public 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, validate
public static final String NON_STATIC_IMPORT_PATTERN
public static final String STATIC_IMPORT_PATTERN
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
protected int findLineNumberOfFirstClassDeclaration(SourceCode sourceCode)
protected void eachImportLine(SourceCode sourceCode, groovy.lang.Closure closure)
Copyright © 2019. All rights reserved.