org.springframework.scripting.ScriptSource interface,
encapsulating a given String that contains the script source text.
Supports programmatic updates of the script String.
| Access | Constructor and Description |
|---|---|
| public | StaticScriptSource(String
the script String script)Create a new StaticScriptSource for the given script. |
| public | StaticScriptSource(String
the script String script, String the suggested class name for the script
(may be className)null)Create a new StaticScriptSource for the given script. |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized String | getScriptAsString()
Implements org. |
| public synchronized boolean | isModified()
Implements org. getScriptAsString() was called.
|
| public synchronized void | |
| public String | suggestedClassName()
Implements org. |
| public String |
| className | back to summary |
|---|---|
| private String className
| |
| modified | back to summary |
|---|---|
| private boolean modified | |
| script | back to summary |
|---|---|
| private String script | |
| StaticScriptSource | back to summary |
|---|---|
| public StaticScriptSource(String script) Create a new StaticScriptSource for the given script.
| |
| StaticScriptSource | back to summary |
|---|---|
| public StaticScriptSource(String script, String className) Create a new StaticScriptSource for the given script. | |
| getScriptAsString | back to summary |
|---|---|
| public synchronized String getScriptAsString() Implements org. Doc from org. Retrieve the current script source text as String. | |
| isModified | back to summary |
|---|---|
| public synchronized boolean isModified() Implements org. Doc from org. Indicate whether the underlying script data has been modified since
the last time
| |
| setScript | back to summary |
|---|---|
| public synchronized void setScript(String script) Set a fresh script String, overriding the previous script.
| |
| suggestedClassName | back to summary |
|---|---|
| public String suggestedClassName() Implements org. Doc from org. Determine a class name for the underlying script. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |