public class ReturnAdder extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ReturnAdder.ReturnStatementListener
Implement this method in order to be notified whenever a return statement is generated.
|
Constructor and Description |
---|
ReturnAdder() |
ReturnAdder(ReturnAdder.ReturnStatementListener listener) |
Modifier and Type | Method and Description |
---|---|
static void |
addReturnIfNeeded(MethodNode node)
Deprecated.
Use
visitMethod(org.codehaus.groovy.ast.MethodNode) instead |
void |
visitMethod(MethodNode node) |
public ReturnAdder()
public ReturnAdder(ReturnAdder.ReturnStatementListener listener)
@Deprecated public static void addReturnIfNeeded(MethodNode node)
visitMethod(org.codehaus.groovy.ast.MethodNode)
insteadnode
- the method node where to add return statementspublic void visitMethod(MethodNode node)