LangParsable

abstract class LangParsable<Config : ConfigUnit, LangDistro : LangDockerfile>(val stageName: String, val language: String, val langFamilyName: String) : DockerConfigParsable

Shorthand for implementing DockerConfigParsable that has a programming language constraint.

Provides common checks and error reporting for verifying the language of choice.

Constructors

Link copied to clipboard
constructor(stageName: String, language: String, langFamilyName: String)

Properties

Link copied to clipboard
protected val langFamilyName: String
Link copied to clipboard
protected val language: String
Link copied to clipboard
protected val stageName: String

Functions

Link copied to clipboard
open override fun parse(configUnit: ConfigUnit, context: ConfigParsable.Context): ConfigParsable.Parsed

open override fun parse(configUnit: ConfigUnit, context: DockerConfigParsable.Context): ConfigParsable.Parsed

Template method for parsing method, using the overridden Context.

Link copied to clipboard
abstract fun Config.then(lang: Settings.Lang, langDistro: LangDistro): ConfigParsable.Parsed