Add UrlScriptSource

This commit is contained in:
Ilya Chernikov
2018-11-29 18:13:44 +01:00
parent fb929c290d
commit 3fe324bbb4
@@ -47,6 +47,13 @@ open class FileScriptSource(val file: File) : ExternalSourceCode {
override val text: String by lazy { file.readText() }
}
/**
* The implementation of the SourceCode for a script location pointed by the URL
*/
open class UrlScriptSource(override val externalLocation: URL) : ExternalSourceCode {
override val text: String by lazy { externalLocation.readText() }
}
/**
* Converts the file into the SourceCode
*/