Package org.codehaus.groovy.transform.tailrec

# Class HasRecursiveCalls

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

public class HasRecursiveCalls extends Object
Check if there are any recursive calls in a method

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HasRecursiveCalls()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `test(MethodNode method)`
  Tests whether the supplied method contains at least one recursive call.

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

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

- ## Constructor Details

  - ### HasRecursiveCalls

    public HasRecursiveCalls()

- ## Method Details

  - ### test

    public boolean test(MethodNode method)
    Tests whether the supplied method contains at least one recursive call.
    Parameters:
      `method` - the method to inspect
    Returns:
      `true` if the method contains a recursive call; `false` otherwise