com.ybo.trackingplugin.tasks.utils.CodeGenerator.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
import com.ybo.trackingplugin.tasks.TraceProcessingParams
import com.ybo.trackingplugin.tasks.data.TraceAnnotationMark
/**
* generator of the code line that will be added at the start of tracked methods
*/
abstract class CodeGenerator {
val tracePerformerPackage = TraceProcessingParams.TRACEPERFORMER_PACKAGE
abstract fun generate(
params: String,
tracerFactoryString: String,
insideMethodIndentation: String,
methodName: String,
tag: String,
alterationOffset: Int,
mark: TraceAnnotationMark,
): String
}