public abstract class AbstractImportRule extends AbstractRule implements groovy.lang.GroovyObject
Modifier and Type | Field and Description |
---|---|
static Object |
NON_STATIC_IMPORT_PATTERN |
static Object |
STATIC_IMPORT_PATTERN |
Constructor and Description |
---|
AbstractImportRule() |
Modifier and Type | Method and Description |
---|---|
protected void |
eachImportLine(SourceCode sourceCode,
groovy.lang.Closure closure) |
protected Object |
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, createViolation, createViolation, createViolation, createViolationForImport, 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 Object NON_STATIC_IMPORT_PATTERN
public static final Object 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 Object findLineNumberOfFirstClassDeclaration(SourceCode sourceCode)
protected void eachImportLine(SourceCode sourceCode, groovy.lang.Closure closure)
Copyright © 2022. All rights reserved.