GeeCON Prague 2022: Jan Lahoda - origin code models in the JDK and their use

youtube.com 1 rok temu


In this talk, we will show the JDK APIs and tools which supply models of Java origin code. We will show how to usage them to make code or execute more strict checks on the origin code. We will not only show how to usage the standard API for Java origin code modelling in the javax.lang.model packages, but besides a more detailed API allowing access to the ASTs: Trees API. We will besides show how to access the origin code models, utilizing either annotation processors or javac compiler Plugins, or by moving the javac straight without a command line