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

org.jetbrains.kotlinx.jupyter.api.libraries.VariablesSubstitutionAware.kt Maven / Gradle / Ivy

There is a newer version: 0.12.0-335
Show newest version
package org.jetbrains.kotlinx.jupyter.api.libraries

/**
 * [VariablesSubstitutionAware] provides interface for variables substitution.
 *
 * It is supposed that [T] implements `VariablesSubstitutionAware`
 *
 * If implementors don't have variables to be replaced, they may return `this`.
 * Non-trivial implementations are supposed for classes representing text code
 * snippets.
 */
interface VariablesSubstitutionAware {
    /**
     * Replace variables and return the result.
     *
     * @param mapping maps variables names to their values
     * @return instance with substituted variables
     */
    fun replaceVariables(mapping: Map): T
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy