Class ReturnAdder

java.lang.Object
org.codehaus.groovy.classgen.ReturnAdder

public class ReturnAdder
extends java.lang.Object
Utility class to add return statements.

Extracted from Verifier as it can be useful for some AST transformations.

  • Constructor Details

  • Method Details

    • addReturnIfNeeded

      @Deprecated public static void addReturnIfNeeded​(MethodNode node)
      Deprecated.
    • visitMethod

      public void visitMethod​(MethodNode node)
      Adds return statements to given method whenever an implicit return is detected.