Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Surround with (Alt+Ctrl+T)

  • (...)
  • !(...)
  • ((Type) ...)
  • with (...)
  • if() { } / else {} while ... }
  • if() { ... } / else
  • try / catch
  • try / finally
  • closure {}
  • (Type) expr

...

  • try / catch / finally
  • while () { ... }
  • { -> ... }.call()

Introduce

  • Introduce variable (Alt+Ctrl+V)
    • Introduce variable
      • Offer the default type and variable name

    ...

    • Introduce parameter (Alt+Ctrl+P)
      • from expression
      • from variable
      • updates references in Groovy and Java
    • Introduce closure parameter (Alt+Ctrl+P)
      • from expression
      • from several statements
    • Introduce field
    • Introduce constant

    Extract method (Alt+Ctrl+M)

    • from expression
    • from several statements

    Change signature (Ctrl+Shift+F6)

    • updates all references (in Groovy and Java)

    Inline (Alt+Ctrl+N)

    Rename (Shift+F6)

    Renames

    • packages
    • classes
    • local variables
    • methods
      • declaration case
      • call case

    Convert to Java

    • converts Groovy code to equivalent Java

    Structure view

    Shows

    • classes
    • methods
    • fields

    ...

    •  Create groovy class or script action easy of access from every project file context menu

    Notable intentions

    • Grab annotation
    • Declare explicit type
    • String intentions
    • Convert Groovy native map to class instance
    • Style conversions
      • Convert Java-style array creation to Groovy style
      • Chage Java-style accessor invocation to Groovy-style property reference
    • Convert method to property of closure type
    • Convert property to method
    • Add return type to method declaration
    • Convert method or closure parameters to map entries

    Grails

    • Grails SDK configuration
    • Grails controller, view, domain class, job, script,  service, taglib creation
    • Grails generators are built in; output to console

    Supported AST transformations

    • AutoClone
    • AutoExternalize
    • Tupleconstructor
    • Immutable
    • Canonical
    • Delegate
    • InheritConstructor
    • Log
    • Commons
    • Log4j
    • Slf4j
    • IndexedProperty
    • Newify
    • Singleton
    • Vetoable

    Other supported annotations

    • Mixin
    • Bindable
    • Category

    Resolve features

    • automatic inference of types of closure parameters used in DefaultGroovyMethods methods
    • mixins into metaclasses:   MyClass.mixin(MyOtherClass)
    • DefaultGroovyMethods.with, use