AssertStmt Statement
AssertStmt Entity
AssertStmt is a statement that asserts a condition.
Example
class MyClass { ... public void myMethod() { assert myLocalVariable == 1; // AssertStmt } ....}Attributes
| Entity | Description |
|---|---|
| GetAPrimaryQlClass() string | Returns the primary QL class name for the assert statement |
| GetHalsteadID() int | Returns the Halstead ID metric for complexity measurement of the assert statement |
| GetPP() string | Returns the pretty-printed representation of the assert statement |
| ToString() string | Returns a string representation of the assert statement |
| GetMessage() *Expr | Returns the message expression associated with the assert statement if present |
| GetExpr() *Expr | Returns the condition expression being asserted in the statement |