Get the latest tech news
Code Models
reflection, an enhancement to Java reflection, enables access to symbolic representations of Java code in method bodies and lambda bodies. “Symbolic representations of Java code” may seem like a fancy term, but its easily demystified.
Code models for identified method and lambda bodies are produced by the Java compiler, stored in class files, and made accessible at run time via reflective APIs. We annotate it with@CodeReflection to identify that the method’s code model should be built by the compiler and made accessible at runtime using the reflection API. Again, identifying expressions graphs that model statements is useful to determine whether the Java method is applicable for transformation and for the generation of idiomatic C code.
Or read this on Hacker News