Class AssertThrowsAsmGenerator

java.lang.Object
org.ek9lang.compiler.backend.jvm.AbstractAsmGenerator
org.ek9lang.compiler.backend.jvm.AssertThrowsAsmGenerator
All Implemented Interfaces:
Consumer<AssertThrowsInstr>

final class AssertThrowsAsmGenerator extends AbstractAsmGenerator implements Consumer<AssertThrowsInstr>
Specialized ASM generator for AssertThrowsInstr processing. Handles ASSERT_THROWS and ASSERT_DOES_NOT_THROW operations.

These are test-only constructs that wrap expressions in try-catch blocks:

  • ASSERT_THROWS: Expects a specific exception type, stores caught exception to result
  • ASSERT_DOES_NOT_THROW: Expects no exception to be thrown