Skip to content

Extensions to the Groovy language, implemented as AST transformations

Notifications You must be signed in to change notification settings

pniederw/groovy-extensions

Repository files navigation

This project provides the following Groovy language extensions:

1. True named method parameters (first prototype available)
Declare like this:
@org.groovyext.NamedParameters
def foo(first, second = "default value", third) {...}

Use like this:
foo(first: "one", third: "third")

2. Closures as annotation element values (already in Groovy proper)
@MyAnno(value = { println it })

Check out the tests to learn more.

About

Extensions to the Groovy language, implemented as AST transformations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published