Inherits EventObject.
Inherited by org.qscript.events.EvaluationErrorEvent, org.qscript.events.HaltExecutionEvent, org.qscript.events.OutputEvent, org.qscript.events.ResumeEvent, org.qscript.events.ScriptFinishedEvent, org.qscript.events.StoreUpdateEvent, org.qscript.events.SyntaxErrorEvent, org.qscript.events.TraceEvent, and org.qscript.events.WaitEvent.
|
|
final ErrorType | etype |
| |
|
final int | lineNo |
| |
|
final int | pos |
| |
|
final int | width |
| |
|
final Object[] | extra |
| |
|
|
final String | f0 = "{0} [Line {1} : Pos {2}]" |
| |
|
String | message |
| |
Base class for all scripting events
- Author
- Peter Lager
| org.qscript.events.ScriptEvent.ScriptEvent |
( |
Script |
script, |
|
|
ErrorType |
etype, |
|
|
int |
lineNo, |
|
|
int |
pos, |
|
|
int |
width, |
|
|
Object[] |
extra |
|
) |
| |
The basis for all script events
- Parameters
-
| script | the source of the event |
| etype | the error type (if event caused by error) |
| lineNo | line number where the event was fired |
| pos | the position in the source code where the token starts |
| width | the width (chars) of the token |
| extra | this extra object is specific to this event |
| org.qscript.events.ScriptEvent.ScriptEvent |
( |
Script |
script, |
|
|
ErrorType |
etype, |
|
|
int |
lineNo, |
|
|
int |
pos, |
|
|
int |
width |
|
) |
| |
The basis for all script events
- Parameters
-
| script | the source of the event |
| etype | the error type (if event caused by error) |
| lineNo | line number where the event was fired |
| pos | the position in the source code where the token starts |
| width | the width (chars) of the token |
| String org.qscript.events.ScriptEvent.getMessage |
( |
| ) |
|
| Script org.qscript.events.ScriptEvent.getScript |
( |
| ) |
|
Get the script that fired this event.
| Script org.qscript.events.ScriptEvent.getSource |
( |
| ) |
|
Get the source of this event i.e. the script. Does the same as getScript()
The documentation for this class was generated from the following file:
- /Users/peter/git/qscript-repos/Q-script/src/org/qscript/events/ScriptEvent.java