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

## [Java] Class BinaryExpressionTransformer

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

-     public class BinaryExpressionTransformer
      extends Object

  Rewrites binary expressions into forms that generate better static-compilation bytecode.

- - ### Constructor Summary

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

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Expression` | `transformBinaryExpression(BinaryExpression bin)` Transforms a binary expression when a static-compilation-specific optimization applies.

  - ### Inherited Methods Summary

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

- - ### Constructor Detail

    - #### public BinaryExpressionTransformer(StaticCompilationTransformer staticCompilationTransformer)

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

      Parameters:
        `staticCompilationTransformer` - the shared transformer context

  - ### Method Detail

    - #### public Expression transformBinaryExpression(BinaryExpression bin)

      Transforms a binary expression when a static-compilation-specific optimization applies.

      Parameters:
        `bin` - the binary expression to transform
      Returns:
        the optimized expression, or the regular transformed expression when no optimization applies