public class ReturnAdder extends Object
Extracted from Verifier as it can be useful for some AST transformations.
Modifier and Type | Class and Description |
---|---|
static interface |
ReturnAdder.ReturnStatementListener |
Constructor and Description |
---|
ReturnAdder() |
ReturnAdder(ReturnAdder.ReturnStatementListener listener) |
Modifier and Type | Method and Description |
---|---|
static void |
addReturnIfNeeded(MethodNode node)
Deprecated.
Use
visitMethod(MethodNode) instead. |
void |
visitMethod(MethodNode node)
Adds return statements to given method whenever an implicit return is detected.
|
public ReturnAdder()
public ReturnAdder(ReturnAdder.ReturnStatementListener listener)
@Deprecated public static void addReturnIfNeeded(MethodNode node)
visitMethod(MethodNode)
instead.public void visitMethod(MethodNode node)