Class ReturnStatement

java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.stmt.Statement
org.codehaus.groovy.ast.stmt.ReturnStatement
All Implemented Interfaces:
NodeMetaDataHandler

public class ReturnStatement
extends Statement
A return statement
  • Field Details

    • RETURN_NULL_OR_VOID

      public static final ReturnStatement RETURN_NULL_OR_VOID
      Only used for synthetic return statements emitted by the compiler. For comparisons use isReturningNullOrVoid() instead.
  • Constructor Details

  • Method Details

    • getExpression

      public Expression getExpression()
    • setExpression

      public void setExpression​(Expression expression)
    • getText

      public java.lang.String getText()
      Overrides:
      getText in class ASTNode
    • isReturningNullOrVoid

      public boolean isReturningNullOrVoid()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • visit

      public void visit​(GroovyCodeVisitor visitor)
      Overrides:
      visit in class ASTNode