Package: org.apache.groovy.ginq

## [Groovy] Class GinqGroovyMethods

- org.apache.groovy.ginq.GinqGroovyMethods

-     @Incubating
      @CompileStatic
      class GinqGroovyMethods
      extends Object

  Declare GINQ macro methods

  Since:
    4.0.0

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static List<String>` | `CONF_LIST` |
    `static String` | `CONF_PARALLEL` |

  - ### Methods Summary

    Methods
    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)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Field Detail

    - #### public static final List<String> CONF_LIST

    - #### public static final String CONF_PARALLEL

  - ### Method Detail

    - #### @Macro static Expression GQ(MacroContext ctx, ClosureExpression ginqClosureExpression)

      Transform GINQ code to target method invocation

      Parameters:
        `ctx` - the macro context
        `ginqClosureExpression` - hold the GINQ code
      Returns:
        target method invocation
      Since:
        4.0.0

    - #### @Macro static Expression GQ(MacroContext ctx, MapExpression ginqConfigurationMapExpression, ClosureExpression ginqClosureExpression)

      Transform GINQ code to target method invocation

      Parameters:
        `ctx` - the macro context
        `ginqConfigurationMapExpression` - specify the configuration for GINQ, e.g. `astWalker`, `optimize`, `parallel`
        `ginqClosureExpression` - hold the GINQ code
      Returns:
        target method invocation
      Since:
        4.0.0

    - #### @Macro static Expression GQL(MacroContext ctx, ClosureExpression ginqClosureExpression)

      Represents the abbreviation of `GQ {...`.toList()}, which is very useful when used as list comprehension

      Parameters:
        `ctx` - the macro context
        `ginqClosureExpression` - hold the GINQ code
      Returns:
        target method invocation
      Since:
        4.0.0

    - #### @Macro static Expression GQL(MacroContext ctx, MapExpression ginqConfigurationMapExpression, ClosureExpression ginqClosureExpression)

      Represents the abbreviation of `GQ {...`.toList()}, which is very useful when used as list comprehension

      Parameters:
        `ctx` - the macro context
        `ginqConfigurationMapExpression` - specify the configuration for GINQ, e.g. `astWalker`, `optimize`, `parallel`
        `ginqClosureExpression` - hold the GINQ code
      Returns:
        target method invocation
      Since:
        4.0.0

    - #### static Expression transformGinqCode(SourceUnit sourceUnit, MapExpression ginqConfigurationMapExpression, Statement code)