public interface ScriptSource
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getScriptAsString()
Retrieve the current script source text as String.
|
boolean |
isModified()
Indicate whether the underlying script data has been modified since
the last time
getScriptAsString() was called. |
java.lang.String |
suggestedClassName()
Determine a class name for the underlying script.
|
java.lang.String getScriptAsString() throws java.io.IOException
java.io.IOException
- if script retrieval failedboolean isModified()
getScriptAsString()
was called.
Returns true
if the script has not been read yet.@Nullable java.lang.String suggestedClassName()
null
if none available