A return statement
Modifiers | Name | Description |
---|---|---|
static ReturnStatement |
RETURN_NULL_OR_VOID |
Only used for synthetic return statements emitted by the compiler. |
Constructor and description |
---|
ReturnStatement
(ExpressionStatement statement) |
ReturnStatement
(Expression expression) |
Type Params | Return Type | Name and description |
---|---|---|
|
Expression |
getExpression() |
|
String |
getText() |
|
boolean |
isReturningNullOrVoid() |
|
void |
setExpression(Expression expression) |
|
void |
visit(GroovyCodeVisitor visitor) |
Methods inherited from class | Name |
---|---|
class Statement |
addStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel |
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Only used for synthetic return statements emitted by the compiler. For comparisons use isReturningNullOrVoid() instead.
Copyright © 2003-2017 The Apache Software Foundation. All rights reserved.