Class ReturnStatement
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.stmt.Statement
org.codehaus.groovy.ast.stmt.ReturnStatement
A return statement
- Version:
- $Revision$
- Author:
- James Strachan
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReturnStatementOnly used for synthetic return statements emitted by the compiler. -
Constructor Summary
ConstructorsConstructorDescriptionReturnStatement(Expression expression) ReturnStatement(ExpressionStatement statement) -
Method Summary
Modifier and TypeMethodDescriptiongetText()booleanvoidsetExpression(Expression expression) voidvisit(GroovyCodeVisitor visitor) Methods inherited from class Statement
getStatementLabel, isEmpty, setStatementLabel
-
Field Details
-
RETURN_NULL_OR_VOID
Only used for synthetic return statements emitted by the compiler. For comparisons use isReturningNullOrVoid() instead.
-
-
Constructor Details
-
ReturnStatement
-
ReturnStatement
-
-
Method Details