Package org.codehaus.groovy.transform.tailrec

# Interface VariableReplacedListener

All Known Implementing Classes:
  `UsedVariableTracker`

public interface VariableReplacedListener
Receives notifications whenever a variable expression is replaced.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final VariableReplacedListener`
  `NULL`
  No-op listener instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `variableReplaced(VariableExpression oldVar, VariableExpression newVar)`
  Called after a variable expression has been replaced.

- ## Field Details

  - ### NULL

    static final VariableReplacedListener NULL
    No-op listener instance.

- ## Method Details

  - ### variableReplaced

    void variableReplaced(VariableExpression oldVar, VariableExpression newVar)
    Called after a variable expression has been replaced.
    Parameters:
      `oldVar` - the original variable expression
      `newVar` - the replacement variable expression