Class InWhileLoopWrapper
java.lang.Object
org.codehaus.groovy.transform.tailrec.InWhileLoopWrapper
Wrap the body of a method in a while loop, nested in a try-catch.
This is the first step in making a tail recursive method iterative.
There are two ways to invoke the next iteration step:
- "continue _RECUR_HERE_" is used by recursive calls outside of closures
- "throw LOOP_EXCEPTION" is used by recursive calls within closures b/c you cannot invoke "continue" from there
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
LOOP_LABEL
- See Also:
-
LOOP_EXCEPTION
-
-
Constructor Details
-
InWhileLoopWrapper
public InWhileLoopWrapper()
-
-
Method Details
-
wrap
-