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

Inherits org.qscript.events.ScriptEvent.

Public Member Functions

 TraceEvent (Script script, ErrorType etype, int lineNo, int pos, int width, Object[] extra)
 
 TraceEvent (Script script, ErrorType etype, int lineNo, int pos, int width)
 
- Public Member Functions inherited from org.qscript.events.ScriptEvent
 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 ()
 

Additional Inherited Members

- Public Attributes inherited from org.qscript.events.ScriptEvent
final ErrorType etype
 
final int lineNo
 
final int pos
 
final int width
 
final Object[] extra
 
- Protected Attributes inherited from org.qscript.events.ScriptEvent
final String f0 = "{0} [Line {1} : Pos {2}]"
 
String message
 

Detailed Description

This event is fired after evaluating a token at runtime. It is used to trace the execution of a script and can be enabled/disabled with the script.tracOn(boolean) method.

Author
Peter Lager

Constructor & Destructor Documentation

org.qscript.events.TraceEvent.TraceEvent ( Script  script,
ErrorType  etype,
int  lineNo,
int  pos,
int  width,
Object[]  extra 
)
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
extrathe ParseToken just evaluated
org.qscript.events.TraceEvent.TraceEvent ( 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

The documentation for this class was generated from the following file: