VariablesSubstitutionAware

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.

Inheritors

Functions

Link copied to clipboard
abstract fun replaceVariables(mapping: Map<String, String>): T

Replace variables and return the result.