public class AssertionWriter
extends Object
Emits bytecode for Groovy assert statements.
| Constructor and description |
|---|
AssertionWriter(WriterController wc)Creates an assertion writer for the supplied controller. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
disableTracker()Temporarily disables power-assert value tracking. |
|
public void |
record(Token token)Records the current stack value for the supplied token position. |
|
public void |
record(Expression expression)Records the current stack value for the supplied expression position. |
|
public void |
reenableTracker()Restores power-assert value tracking after a previous disable. |
|
public void |
writeAssertStatement(AssertStatement statement)Emits bytecode for an assert statement. |
Creates an assertion writer for the supplied controller.
wc - the active writer controllerTemporarily disables power-assert value tracking.
Records the current stack value for the supplied token position.
token - the token whose source position should be recordedRecords the current stack value for the supplied expression position.
expression - the expression whose source position should be recordedRestores power-assert value tracking after a previous disable.
Emits bytecode for an assert statement.
statement - the assertion statementCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.