public class AssertStatement extends Statement
assert i != 0 : "should never be zero";
Constructor and Description |
---|
AssertStatement(BooleanExpression booleanExpression) |
AssertStatement(BooleanExpression booleanExpression,
Expression messageExpression) |
Modifier and Type | Method and Description |
---|---|
BooleanExpression |
getBooleanExpression() |
Expression |
getMessageExpression() |
void |
setBooleanExpression(BooleanExpression booleanExpression) |
void |
setMessageExpression(Expression messageExpression) |
void |
visit(GroovyCodeVisitor visitor) |
addStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel
copyNodeMetaData, equals, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, hashCode, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public AssertStatement(BooleanExpression booleanExpression)
public AssertStatement(BooleanExpression booleanExpression, Expression messageExpression)
public void visit(GroovyCodeVisitor visitor)
public Expression getMessageExpression()
public BooleanExpression getBooleanExpression()
public void setBooleanExpression(BooleanExpression booleanExpression)
public void setMessageExpression(Expression messageExpression)