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

Inherits JFrame, and TableModelListener.

Classes

class  ScriptChangeListener
 

Public Member Functions

 QScriptIDE ()
 
void clearAllHighlights ()
 
void setHighlight (int lineNo, int charPos, int charWidth, int style)
 
void onScriptEvent (ScriptEvent event)
 
void tableChanged (TableModelEvent e)
 
int getDocumentPos (int lineNo, int pos)
 

Static Public Member Functions

static void main (String args[])
 

Static Public Attributes

static final int EDIT = 1
 
static final int PAUSED = 2
 
static final int RUNNING = 3
 
static final String newline = "\n"
 
static final String lineSep = System.getProperty("line.separator")
 

Protected Member Functions

void setCode (String[] codeLines)
 

Protected Attributes

AbstractDocument doc
 
StyledDocument styledDoc
 
Script script = new Script("")
 
SimpleAttributeSet[] attrs
 
DataStoreModel model
 
int mode
 
HashMap< String, Variablestore = new HashMap<String, Variable>()
 

Static Protected Attributes

static final int MAX_CHARACTERS = 50000
 

Detailed Description

A Java Swing QScript editor

There are no third party library dependencies for this editor.
A very simple QScript IDE. Allows to to trace through the evaluation of a QScript expression or algorithm.

Author
Peter Lager

Constructor & Destructor Documentation

org.qscript.editor.QScriptIDE.QScriptIDE ( )

Creates new QScript Editor

Member Function Documentation

void org.qscript.editor.QScriptIDE.clearAllHighlights ( )

Used to clear any highlights added when tracing

static void org.qscript.editor.QScriptIDE.main ( String  args[])
static
Parameters
argsthe command line arguments
void org.qscript.editor.QScriptIDE.onScriptEvent ( ScriptEvent  event)

This will handle all events fired by during parsing and evaluating of the script

Parameters
eventthe event to process
void org.qscript.editor.QScriptIDE.setHighlight ( int  lineNo,
int  charPos,
int  charWidth,
int  style 
)

Hightlight the bit that is currently being evaluated


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