QScript  2.1.2
Expression and algorithm evaluator
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
org.qscript.events.ScriptEvent Class Reference

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.

Public Member Functions

 ScriptEvent (Script script, ErrorType etype, int lineNo, int pos, int width, Object[] extra)
 
 ScriptEvent (Script script, ErrorType etype, int lineNo, int pos, int width)
 
Script getSource ()
 
Script getScript ()
 
String getMessage ()
 
String toString ()
 

Public Attributes

final ErrorType etype
 
final int lineNo
 
final int pos
 
final int width
 
final Object[] extra
 

Protected Attributes

final String f0 = "{0} [Line {1} : Pos {2}]"
 
String message
 

Detailed Description

Base class for all scripting events

Author
Peter Lager

Constructor & Destructor Documentation

org.qscript.events.ScriptEvent.ScriptEvent ( Script  script,
ErrorType  etype,
int  lineNo,
int  pos,
int  width,
Object[]  extra 
)

The basis for all script events

Parameters
scriptthe source of the event
etypethe error type (if event caused by error)
lineNoline number where the event was fired
posthe position in the source code where the token starts
widththe width (chars) of the token
extrathis 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
scriptthe source of the event
etypethe error type (if event caused by error)
lineNoline number where the event was fired
posthe position in the source code where the token starts
widththe width (chars) of the token

Member Function Documentation

String org.qscript.events.ScriptEvent.getMessage ( )

Get the event message

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: