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) |
getStatementLabel, isEmpty, setStatementLabel
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getText, 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)