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

com.ybo.trackingplugin.tasks.utils.PatternSearcher.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.data.PatternToSearch
import com.ybo.trackingplugin.tasks.data.TraceAnnotationMark
import com.ybo.trackingplugin.tasks.utils.impl.patterns.PatternName
import com.ybo.trackingplugin.tasks.utils.impl.patterns.searchers.resolvers.PatternResolver

/** searches patterns ([PatternToSearch]) in text and returns found data objects.
 * the data objects are usually created by a [PatternResolver]
 * the patterns are usually created by a [PatternProducer]
 * */
interface PatternSearcher {

    /**
     * searches patterns in text in parameter
     */
    fun search(
        text: String,
        patterns: List>,
        mark: TraceAnnotationMark? = null,
    ): List>

    data class GroupOfResult(
        val patternName: PatternName,
        val results: List,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy