Package org.codehaus.groovy.transform.tailrec

# Class CollectRecursiveCalls

java.lang.Object
org.codehaus.groovy.transform.tailrec.CollectRecursiveCalls

public class CollectRecursiveCalls extends Object
Collect all recursive calls within method

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CollectRecursiveCalls()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<Expression>`
  `collect(MethodNode method)`
  Collects recursive call expressions from the supplied method.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CollectRecursiveCalls

    public CollectRecursiveCalls()

- ## Method Details

  - ### collect

    public List<Expression> collect(MethodNode method)
    Collects recursive call expressions from the supplied method.
    Parameters:
      `method` - the method to inspect
    Returns:
      the recursive calls found in the method body