public class ReturnAdder extends Object
Utility class to add return statements.
Extracted from Verifier as it can be useful for some AST transformations.
Modifiers | Name | Description |
---|---|---|
interface |
ReturnAdder.ReturnStatementListener |
Constructor and description |
---|
ReturnAdder
() |
ReturnAdder
(ReturnAdder.ReturnStatementListener listener) |
Type Params | Return Type | Name and description |
---|---|---|
|
public static void |
addReturnIfNeeded(MethodNode node)
|
|
public void |
visitMethod(MethodNode node) Adds return statements to given method whenever an implicit return is detected. |
Adds return statements to given method whenever an implicit return is detected.
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.