Class 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)