Skip to content

Simple demonstration how to use KotlinPoet to generate code with combination of KAPT and simple yet another calculator example.

Notifications You must be signed in to change notification settings

sashjakk/code-gen-calculator

Repository files navigation

Code Generation with KAPT

Simple demonstration how to use KotlinPoet to generate code with combination of KAPT and simple yet another calculator example.

Project structure

  • app - cli application module, contains hand written calculator and operation implementations.
  • annotation - single annotation file module for marking classes suitable for annotation processing tool (requires to be in a separate module to avoid circular dependencies between modules).
  • kapt-tool - annotation processor module, which actually generates code using KotlinPoet.

Useful links

About

Simple demonstration how to use KotlinPoet to generate code with combination of KAPT and simple yet another calculator example.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages