Represents an assert statement.
E.g.:
assert i != 0 : "should never be zero";
Constructor and description |
---|
AssertStatement
(BooleanExpression booleanExpression) |
AssertStatement
(BooleanExpression booleanExpression, Expression messageExpression) |
Type Params | Return Type | Name and description |
---|---|---|
|
BooleanExpression |
getBooleanExpression() |
|
Expression |
getMessageExpression() |
|
void |
setBooleanExpression(BooleanExpression booleanExpression) |
|
void |
setMessageExpression(Expression messageExpression) |
|
void |
visit(GroovyCodeVisitor visitor) |
Methods inherited from class | Name |
---|---|
class Statement |
addStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel |
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Copyright © 2003-2017 The Apache Software Foundation. All rights reserved.