Class AssertStatement

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

public class AssertStatement
extends Statement
Represents an assert statement. E.g.: assert i != 0 : "should never be zero";
  • Constructor Details

  • Method Details

    • visit

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

      public Expression getMessageExpression()
    • getBooleanExpression

      public BooleanExpression getBooleanExpression()
    • setBooleanExpression

      public void setBooleanExpression​(BooleanExpression booleanExpression)
    • setMessageExpression

      public void setMessageExpression​(Expression messageExpression)