spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
55.28k stars 37.62k forks source link

Introduce `generateCodeForArgument()` in `CodeFlow` #32708

Closed sbrannen closed 3 weeks ago

sbrannen commented 3 weeks ago

Overview

SpelNodeImpl currently defines a generateCodeForArgument() utility method which "asks an argument to generate its bytecode and then follow it up with any boxing/unboxing/checkcasting to ensure it matches the expected parameter descriptor."

This utility method is currently protected and cannot be used outside the org.springframework.expression.spel.ast; however, there are times when it would be beneficial to be able to invoke this method from types within the org.springframework.expression.spel package that deal with compilation.

This is a prerequisite for the forthcoming CompilableIndexAccessor.

Related Issues