@Incubating @CompileStatic class GinqGroovyMethods extends Object
Declare GINQ macro methods
| Modifiers | Name | Description |
|---|---|---|
static List<String> |
CONF_LIST |
|
static String |
CONF_PARALLEL |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static Expression |
GQ(MacroContext ctx, ClosureExpression ginqClosureExpression)Transform GINQ code to target method invocation |
|
static Expression |
GQ(MacroContext ctx, MapExpression ginqConfigurationMapExpression, ClosureExpression ginqClosureExpression)Transform GINQ code to target method invocation |
|
static Expression |
GQL(MacroContext ctx, ClosureExpression ginqClosureExpression)Represents the abbreviation of GQ {....toList()}, which is very useful when used as list comprehension |
|
static Expression |
GQL(MacroContext ctx, MapExpression ginqConfigurationMapExpression, ClosureExpression ginqClosureExpression)Represents the abbreviation of GQ {....toList()}, which is very useful when used as list comprehension |
|
static Expression |
transformGinqCode(SourceUnit sourceUnit, MapExpression ginqConfigurationMapExpression, Statement code) |
Transform GINQ code to target method invocation
ctx - the macro contextginqClosureExpression - hold the GINQ codeTransform GINQ code to target method invocation
ctx - the macro contextginqConfigurationMapExpression - specify the configuration for GINQ, e.g. astWalker, optimize, parallelginqClosureExpression - hold the GINQ code Represents the abbreviation of GQ {....toList()}, which is very useful when used as list comprehension
ctx - the macro contextginqClosureExpression - hold the GINQ code Represents the abbreviation of GQ {....toList()}, which is very useful when used as list comprehension
ctx - the macro contextginqConfigurationMapExpression - specify the configuration for GINQ, e.g. astWalker, optimize, parallelginqClosureExpression - hold the GINQ code