Class AbstractImportRule

    • Field Detail

      • NON_STATIC_IMPORT_PATTERN

        public static final Object NON_STATIC_IMPORT_PATTERN
      • STATIC_IMPORT_PATTERN

        public static final Object STATIC_IMPORT_PATTERN
    • Constructor Detail

      • AbstractImportRule

        public AbstractImportRule()
    • Method Detail

      • getMetaClass

        public groovy.lang.MetaClass getMetaClass()
        Specified by:
        getMetaClass in interface groovy.lang.GroovyObject
      • setMetaClass

        public void setMetaClass​(groovy.lang.MetaClass mc)
        Specified by:
        setMetaClass in interface groovy.lang.GroovyObject
      • invokeMethod

        public Object invokeMethod​(String method,
                                   Object arguments)
        Specified by:
        invokeMethod in interface groovy.lang.GroovyObject
      • getProperty

        public Object getProperty​(String property)
        Specified by:
        getProperty in interface groovy.lang.GroovyObject
      • setProperty

        public void setProperty​(String property,
                                Object value)
        Specified by:
        setProperty in interface groovy.lang.GroovyObject
      • findLineNumberOfFirstClassDeclaration

        protected Object findLineNumberOfFirstClassDeclaration​(SourceCode sourceCode)
      • eachImportLine

        protected void eachImportLine​(SourceCode sourceCode,
                                      groovy.lang.Closure closure)