spring-framework / org.springframework.scripting.support / StaticScriptSource

StaticScriptSource

open class StaticScriptSource : ScriptSource

Static implementation of the org.springframework.scripting.ScriptSource interface, encapsulating a given String that contains the script source text. Supports programmatic updates of the script String.

Author
Rob Harrop

Author
Juergen Hoeller

Since
2.0

Constructors

<init>

StaticScriptSource(script: String)
StaticScriptSource(script: String, className: String)

Create a new StaticScriptSource for the given script.

Functions

getScriptAsString

open fun getScriptAsString(): String

isModified

open fun isModified(): Boolean

setScript

open fun setScript(script: String): Unit

Set a fresh script String, overriding the previous script.

suggestedClassName

open fun suggestedClassName(): String

toString

open fun toString(): String