All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.airsaid.sample.plugin.visitor.annotaiton.ExpandableAnnotationHandler.kt Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package com.airsaid.sample.plugin.visitor.annotaiton

import com.airsaid.sample.plugin.visitor.SampleClassVisitor

class ExpandableAnnotationHandler(private val classList: List) : AnnotationHandler() {
  override fun accept(classVisitor: SampleClassVisitor, desc: String, visible: Boolean): Boolean {
    if (classList.any { it == desc }) {
      whenFoundClass?.invoke(classVisitor)
      return true
    }
    return false
  }

  override fun visit(name: String, value: Any?) = Unit
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy