public class ReturnStatement extends Statement
Modifier and Type | Field and Description |
---|---|
static ReturnStatement |
RETURN_NULL_OR_VOID
Only used for synthetic return statements emitted by the compiler.
|
Constructor and Description |
---|
ReturnStatement(Expression expression) |
ReturnStatement(ExpressionStatement statement) |
Modifier and Type | Method and Description |
---|---|
Expression |
getExpression() |
String |
getText() |
boolean |
isReturningNullOrVoid() |
void |
setExpression(Expression expression) |
void |
visit(GroovyCodeVisitor visitor) |
addStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public static final ReturnStatement RETURN_NULL_OR_VOID
public ReturnStatement(ExpressionStatement statement)
public ReturnStatement(Expression expression)
public void visit(GroovyCodeVisitor visitor)
public Expression getExpression()
public void setExpression(Expression expression)
public boolean isReturningNullOrVoid()