Writing Your First Kotlin Compiler Plugin - JetBrains
Writing Your First Kotlin Compiler Plugin
Kevin Most
A brief intro
Are these basically annotation processors?
? Annotation Processors:
? Compiler Plugins:
? Your code runs at compile-time
? Your code runs at compile-time
? Public, documented API
? Private, undocumented API
? Emit Java source code
? Emit Java bytecode (or LLVM IR)
? Works on Kotlin/Java source code
? Works on Kotlin source code only
? Multiplatform not supported
? Multiplatform supported
Why write compiler plugins?
? Incredibly powerful API; you can modify function/class internals
? Enables you to solve new classes of metaprogramming problems
? Annotation processors are JVM-only, while compiler plugins aren't
Why NOT write compiler plugins?
? Annotation processors are much easier to write (if you only care about JVM)
? Compiler plugins are a lot of work. You need to write:
? An IntelliJ plugin (if creating synthetic members)
? A Gradle (or Maven, or other build tool) plugin
? Slightly different extensions for JVM, JS, and Native targets
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- clion cross platform ide for c and c jetbrains
- jetbrainspluginmarketplaceagreement
- feature rich and fast cross platform net ide based on
- micro focus fortify plugins for jetbrains ides user guide
- jetbrainspluginmarketplacedeveloperagreement
- writing your first kotlin compiler plugin jetbrains
- aws toolkit for jetbrains
- how to implement notifications in an intellij plugin www
- 6 click on the install plugin from disk and type in
Related searches
- financing your first home
- selling your first home
- buying your first house tips
- buying your first home advice
- buying your first home
- tips for buying your first home
- when buying your first home
- buying your first house
- how to buy your first house
- buying your first home 2019
- how to buy your first home
- before buying your first home