public class STViz extends Object
Modifier and Type | Field and Description |
---|---|
List<InterpEvent> |
allEvents |
InterpEvent |
currentEvent |
InstanceScope |
currentScope |
ErrorManager |
errMgr |
List<STMessage> |
errors |
Interpreter |
interp |
String |
output |
EvalTemplateEvent |
root |
JTreeSTModel |
tmodel |
List<String> |
trace |
STViewFrame |
viewFrame |
protected static String |
WINDOWS_LINE_ENDINGS |
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) |
protected void |
highlight(JTextComponent comp,
int i,
int j,
boolean scroll) |
static void |
main(String[] args) |
void |
open() |
protected void |
setText(JEditorPane component,
String text) |
static void |
test1() |
static void |
test2() |
static void |
test3() |
static void |
test4() |
protected int |
toComponentPosition(JTextComponent component,
int position) |
protected int |
toEventPosition(JTextComponent component,
int position) |
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) |
protected static final String WINDOWS_LINE_ENDINGS
public EvalTemplateEvent root
public InterpEvent currentEvent
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
InterruptedException
protected void setText(JEditorPane component, String text)
protected int toComponentPosition(JTextComponent component, int position)
protected int toEventPosition(JTextComponent component, int position)
protected final void highlight(JTextComponent comp, int i, int j)
protected void highlight(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(List<InterpEvent> events, int charIndex)
public static void main(String[] args) throws IOException
IOException
public static void test1() throws IOException
IOException
public static void test2() throws IOException
IOException
public static void test3() throws IOException
IOException
public static void test4() throws IOException
IOException
Copyright © 2024. All rights reserved.