Last active
June 10, 2022 17:31
-
-
Save Debdutta-Panda/1938a8dc3977fa249188c8294c266652 to your computer and use it in GitHub Desktop.
MyMarker_phase_3_processor_skeleton
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.debduttapanda.marker | |
| import javax.annotation.processing.AbstractProcessor | |
| import javax.annotation.processing.RoundEnvironment | |
| import javax.annotation.processing.SupportedSourceVersion | |
| import javax.lang.model.SourceVersion | |
| import javax.lang.model.element.Element | |
| import javax.lang.model.element.TypeElement | |
| @SupportedSourceVersion(SourceVersion.RELEASE_8) // 1 | |
| class Processor : AbstractProcessor() { // 2 | |
| override fun getSupportedAnnotationTypes() = | |
| mutableSetOf(Mark::class.java.canonicalName) // 3 | |
| override fun process(annotations: MutableSet<out TypeElement>?, | |
| roundEnv: RoundEnvironment): Boolean { // 4 | |
| // TODO | |
| return true // 5 | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment