Package org.codehaus.groovy.classgen
Class ReturnAdder
java.lang.Object
org.codehaus.groovy.classgen.ReturnAdder
Utility class to add return statements.
Extracted from Verifier as it can be useful for some AST transformations.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addReturnIfNeeded
(MethodNode node) Deprecated.void
visitMethod
(MethodNode node) Adds return statements to given method whenever an implicit return is detected.
-
Constructor Details
-
ReturnAdder
public ReturnAdder() -
ReturnAdder
-
-
Method Details
-
addReturnIfNeeded
Deprecated.UsevisitMethod(MethodNode)
instead. -
visitMethod
Adds return statements to given method whenever an implicit return is detected.
-
visitMethod(MethodNode)
instead.