Package 

Interface VariablesSubstitutionAware


  • 
    public interface VariablesSubstitutionAware<T extends Object>
    
                        

    VariablesSubstitutionAware provides interface for variables substitution.

    It is supposed that T implements VariablesSubstitutionAware<T>

    If implementors don't have variables to be replaced, they may return this. Non-trivial implementations are supposed for classes representing text code snippets.

    • Method Summary

      Modifier and Type Method Description
      abstract T replaceVariables(Map<String, String> mapping) Replace variables and return the result.
      • Methods inherited from class org.jetbrains.kotlinx.jupyter.api.libraries.VariablesSubstitutionAware

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • replaceVariables

         abstract T replaceVariables(Map<String, String> mapping)

        Replace variables and return the result.

        Parameters:
        mapping - maps variables names to their values