public class STViz
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.List<InterpEvent> |
allEvents |
InterpEvent |
currentEvent |
InstanceScope |
currentScope |
ErrorManager |
errMgr |
java.util.List<STMessage> |
errors |
Interpreter |
interp |
java.lang.String |
output |
EvalTemplateEvent |
root |
JTreeSTModel |
tmodel |
java.util.List<java.lang.String> |
trace |
STViewFrame |
viewFrame |
protected static java.lang.String |
WINDOWS_LINE_ENDINGS |
| Constructor and Description |
|---|
STViz(ErrorManager errMgr,
EvalTemplateEvent root,
java.lang.String output,
Interpreter interp,
java.util.List<java.lang.String> trace,
java.util.List<STMessage> errors) |
| Modifier and Type | Method and Description |
|---|---|
InterpEvent |
findEventAtOutputLocation(java.util.List<InterpEvent> events,
int charIndex) |
protected void |
highlight(javax.swing.text.JTextComponent comp,
int i,
int j) |
protected void |
highlight(javax.swing.text.JTextComponent comp,
int i,
int j,
boolean scroll) |
static void |
main(java.lang.String[] args) |
void |
open() |
protected void |
setText(javax.swing.JEditorPane component,
java.lang.String text) |
static void |
test1() |
static void |
test2() |
static void |
test3() |
static void |
test4() |
protected int |
toComponentPosition(javax.swing.text.JTextComponent component,
int position) |
protected int |
toEventPosition(javax.swing.text.JTextComponent component,
int position) |
protected void |
updateAttributes(InstanceScope scope,
STViewFrame m) |
protected void |
updateStack(InstanceScope scope,
STViewFrame m) |
void |
waitForClose() |
static void |
writeFile(java.lang.String dir,
java.lang.String fileName,
java.lang.String content) |
protected static final java.lang.String WINDOWS_LINE_ENDINGS
public EvalTemplateEvent root
public InterpEvent currentEvent
public InstanceScope currentScope
public java.util.List<InterpEvent> allEvents
public JTreeSTModel tmodel
public ErrorManager errMgr
public Interpreter interp
public java.lang.String output
public java.util.List<java.lang.String> trace
public java.util.List<STMessage> errors
public STViewFrame viewFrame
public STViz(ErrorManager errMgr, EvalTemplateEvent root, java.lang.String output, Interpreter interp, java.util.List<java.lang.String> trace, java.util.List<STMessage> errors)
public void open()
public void waitForClose()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected void setText(javax.swing.JEditorPane component,
java.lang.String text)
protected int toComponentPosition(javax.swing.text.JTextComponent component,
int position)
protected int toEventPosition(javax.swing.text.JTextComponent component,
int position)
protected final void highlight(javax.swing.text.JTextComponent comp,
int i,
int j)
protected void highlight(javax.swing.text.JTextComponent comp,
int i,
int j,
boolean scroll)
protected void updateAttributes(InstanceScope scope, STViewFrame m)
protected void updateStack(InstanceScope scope, STViewFrame m)
public InterpEvent findEventAtOutputLocation(java.util.List<InterpEvent> events, int charIndex)
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionpublic static void test1()
throws java.io.IOException
java.io.IOExceptionpublic static void test2()
throws java.io.IOException
java.io.IOExceptionpublic static void test3()
throws java.io.IOException
java.io.IOExceptionpublic static void test4()
throws java.io.IOException
java.io.IOExceptionpublic static void writeFile(java.lang.String dir,
java.lang.String fileName,
java.lang.String content)
Copyright © 2018. All Rights Reserved.