public class STViz extends Object
| Modifier and Type | Field and Description |
|---|---|
List<InterpEvent> |
allEvents |
InstanceScope |
currentScope |
ErrorManager |
errMgr |
List<STMessage> |
errors |
Interpreter |
interp |
String |
output |
EvalTemplateEvent |
root |
JTreeSTModel |
tmodel |
List<String> |
trace |
STViewFrame |
viewFrame |
| Constructor and Description |
|---|
STViz(ErrorManager errMgr,
EvalTemplateEvent root,
String output,
Interpreter interp,
List<String> trace,
List<STMessage> errors) |
| Modifier and Type | Method and Description |
|---|---|
InterpEvent |
findEventAtOutputLocation(List<InterpEvent> events,
int charIndex) |
protected void |
highlight(JTextComponent comp,
int i,
int j) |
static void |
main(String[] args) |
void |
open() |
static void |
test1() |
static void |
test2() |
static void |
test3() |
static void |
test4() |
protected void |
updateAttributes(InstanceScope scope,
STViewFrame m) |
protected void |
updateStack(InstanceScope scope,
STViewFrame m) |
void |
waitForClose() |
static void |
writeFile(String dir,
String fileName,
String content) |
public EvalTemplateEvent root
public InstanceScope currentScope
public List<InterpEvent> allEvents
public JTreeSTModel tmodel
public ErrorManager errMgr
public Interpreter interp
public String output
public STViewFrame viewFrame
public STViz(ErrorManager errMgr, EvalTemplateEvent root, String output, Interpreter interp, List<String> trace, List<STMessage> errors)
public void open()
public void waitForClose()
throws InterruptedException
InterruptedExceptionprotected void highlight(JTextComponent comp, int i, int j)
protected void updateAttributes(InstanceScope scope, STViewFrame m)
protected void updateStack(InstanceScope scope, STViewFrame m)
public InterpEvent findEventAtOutputLocation(List<InterpEvent> events, int charIndex)
public static void main(String[] args) throws IOException
IOExceptionpublic static void test1()
throws IOException
IOExceptionpublic static void test2()
throws IOException
IOExceptionpublic static void test3()
throws IOException
IOExceptionpublic static void test4()
throws IOException
IOExceptionCopyright © 2012. All Rights Reserved.