public interface ScriptSource
Modifier and Type | Method and Description |
---|---|
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. |
String |
suggestedClassName()
Determine a class name for the underlying script.
|
String getScriptAsString() throws IOException
IOException
- if script retrieval failedboolean isModified()
getScriptAsString()
was called.
Returns true
if the script has not been read yet.