Package: org.codehaus.groovy.transform.sc.transformers

## [Java] Class RangeExpressionTransformer

- org.codehaus.groovy.transform.sc.transformers.RangeExpressionTransformer

-     public class RangeExpressionTransformer
      extends Object

  This transformer focuses on ranges to produce optimized bytecode.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `RangeExpressionTransformer(StaticCompilationTransformer transformer)` Creates a range-expression transformer backed by the owning static compilation transformer.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Expression` | `transformRangeExpression(RangeExpression range)` Rewrites an IntRange expression into a direct constructor call when possible.

  - ### Inherited Methods Summary

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

- - ### Constructor Detail

    - #### public RangeExpressionTransformer(StaticCompilationTransformer transformer)

      Creates a range-expression transformer backed by the owning static compilation transformer.

      Parameters:
        `transformer` - the shared transformer context

  - ### Method Detail

    - #### public Expression transformRangeExpression(RangeExpression range)

      Rewrites an IntRange expression into a direct constructor call when possible.

      Parameters:
        `range` - the range expression to transform
      Returns:
        the transformed expression