public class ScriptExecutionEvent
extends java.util.EventObject
Modifier and Type | Class and Description |
---|---|
static class |
ScriptExecutionEvent.Type
Defines the type of event.
|
Constructor and Description |
---|
ScriptExecutionEvent(Script source,
ScriptExecutionEvent.Type type)
Initializes the event.
|
ScriptExecutionEvent(Script source,
ScriptExecutionEvent.Type type,
java.lang.Object additional)
Initializes the event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAdditional()
Returns the additional information.
|
Script |
getScript()
Returns the script that triggered the event.
|
ScriptExecutionEvent.Type |
getType()
Returns the type of event.
|
boolean |
hasAdditional()
Returns whether additional information is available.
|
public ScriptExecutionEvent(Script source, ScriptExecutionEvent.Type type)
source
- the script that triggered the eventtype
- the type of finishpublic ScriptExecutionEvent(Script source, ScriptExecutionEvent.Type type, java.lang.Object additional)
source
- the script that triggered the eventtype
- the type of finishadditional
- additional information, can be nullpublic Script getScript()
public ScriptExecutionEvent.Type getType()
public boolean hasAdditional()
getAdditional()
public java.lang.Object getAdditional()