
com.ybo.trackingplugin.tasks.utils.impl.patterns.producers.KotlinMethodPatternProducer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of traceplugin Show documentation
Show all versions of traceplugin Show documentation
gradle plugin allowing to add automatic logs (or other process) at the start of each traced method
package com.ybo.trackingplugin.tasks.utils.impl.patterns.producers
import com.ybo.trackingplugin.tasks.data.PatternToSearch
import com.ybo.trackingplugin.tasks.data.TraceAnnotationMark
import com.ybo.trackingplugin.tasks.utils.PatternProducer
import com.ybo.trackingplugin.tasks.utils.impl.patterns.KotlinMethodExtensionFunctionPattern
import com.ybo.trackingplugin.tasks.utils.impl.patterns.KotlinMethodHigherOrderFunctionNoParamsPattern
import com.ybo.trackingplugin.tasks.utils.impl.patterns.KotlinMethodHigherOrderFunctionPattern
import com.ybo.trackingplugin.tasks.utils.impl.patterns.KotlinMethodPattern
import com.ybo.trackingplugin.tasks.utils.impl.patterns.KotlinMethodPatternName
class KotlinMethodPatternProducer(
private val markToLookFor: TraceAnnotationMark,
) : PatternProducer {
override fun produce(): List> {
return listOf(
KotlinMethodPattern(markToLookFor),
KotlinMethodExtensionFunctionPattern(markToLookFor),
KotlinMethodHigherOrderFunctionPattern(markToLookFor),
KotlinMethodHigherOrderFunctionNoParamsPattern(markToLookFor),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy