Package io.github.connellite.constexpr.processor.hook


package io.github.connellite.constexpr.processor.hook
Post-compile hooks for @ConstExpr transformation.

This package provides an independent safety net when stream interception is unavailable or insufficient. It registers a javac TaskListener on COMPILATION events and, on the final annotation-processing round, scans the class output directory and runs ConstExprMain on compiled .class files.

The final annotation-processing pass is required for environments where javac does not expose a hookable file manager or does not fire task events (for example, some IntelliJ JPS layouts). ConstExprProcessor installs the task listener alongside stream interception when javac exposes the required internals, and always runs the post-compile pass on the last AP round.