Class AspectProxyAsmGenerator

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

final class AspectProxyAsmGenerator extends AbstractAsmGenerator implements Consumer<AspectProxyInstr>
Specialized ASM generator for CREATE_ASPECT_PROXY instruction.

When encountered in the _prepare method, this generator:

  1. Triggers AspectProxyClassGenerator to emit a synthetic proxy .class file (cached — only once per proxy)
  2. Emits instantiation bytecode in the current method: NEW + DUP + load delegate + load aspects + INVOKESPECIAL + ASTORE

Follows the two-tier pattern established by EnumIteratorImplAsmGenerator.