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 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