Class ExpressionStatement

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

public class ExpressionStatement
extends Statement
A simple statement such as a method call where the return value is ignored
  • Constructor Details

    • ExpressionStatement

      public ExpressionStatement​(Expression expression)
  • Method Details

    • visit

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

      public Expression getExpression()
    • setExpression

      public void setExpression​(Expression expression)
    • getText

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

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