On this page
[Java] Class AssertStatementCreationUtility.ReturnStatementVisitor
- org.apache.groovy.contracts.generation.AssertStatementCreationUtility.ReturnStatementVisitor
public static class AssertStatementCreationUtility.ReturnStatementVisitor
extends ClassCodeVisitorSupport
Collects all ReturnStatement instances from a given code block.
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public List<ReturnStatement> |
getReturnStatements() |
|
protected SourceUnit |
getSourceUnit() |
|
public void |
visitClosureExpression(ClosureExpression expression) |
|
public void |
visitReturnStatement(ReturnStatement statement) |
Inherited Methods Summary
Method Detail
public List<ReturnStatement> getReturnStatements()
@Override protected SourceUnit getSourceUnit()
@Override public void visitClosureExpression(ClosureExpression expression)
@Override public void visitReturnStatement(ReturnStatement statement)
© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/org/apache/groovy/contracts/generation/AssertStatementCreationUtility.ReturnStatementVisitor.html