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

com.ybo.trackingplugin.tasks.utils.CodeGenerator.kt Maven / Gradle / Ivy

Go to download

gradle plugin allowing to add automatic logs (or other process) at the start of each traced method

There is a newer version: 0.6.2
Show newest version
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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy