Top Fields Constructors Methods
org.stringtemplate.v4.gui

public Class STViz

extends Object
Class Inheritance
Imports
org.antlr.runtime.CommonToken, org.antlr.runtime.tree.CommonTree, .CommonTreeAdaptor, org.stringtemplate.v4.InstanceScope, .Interpreter, .ST, .STGroup, .STGroupFile, .STGroupString, org.stringtemplate.v4.debug.EvalExprEvent, .EvalTemplateEvent, .InterpEvent, org.stringtemplate.v4.misc.ErrorManager, .Interval, .Misc, .STMessage, .STRuntimeMessage, javax.swing.*, javax.swing.border.Border, javax.swing.event.CaretEvent, .CaretListener, .ListSelectionEvent, .ListSelectionListener, .TreeSelectionEvent, .TreeSelectionListener, javax.swing.text.BadLocationException, .DefaultHighlighter, .Highlighter, .JTextComponent, javax.swing.tree.TreePath, java.awt.event.WindowAdapter, .WindowEvent, java.io.BufferedWriter, .File, .FileWriter, .IOException, java.util.ArrayList, .Arrays, .List, java.util.concurrent.atomic.AtomicInteger

Field Summary

Modifier and TypeField and Description
public List<InterpEvent>
public InterpEvent
public InstanceScope
public ErrorManager
public List<STMessage>
public Interpreter
public String
public EvalTemplateEvent
public JTreeSTModel
public List<String>
private final AtomicInteger
public STViewFrame
protected static final String

Constructor Summary

AccessConstructor and Description
public
STViz(ErrorManager errMgr, EvalTemplateEvent root, String output, Interpreter interp, List<String> trace, List<STMessage> errors)

Method Summary

Modifier and TypeMethod and Description
public InterpEvent
findEventAtOutputLocation(List<InterpEvent> events, int charIndex)

protected final void
highlight(JTextComponent comp, int i, int j)

protected void
highlight(JTextComponent comp, int i, int j, boolean scroll)

public static void
main(String[] args)

public void
open()

protected void
setText(JEditorPane component, String text)

public static void
public static void
public static void
public static void
protected int
toComponentPosition(JTextComponent component, int position)

protected int
toEventPosition(JTextComponent component, int position)

protected void
private void
protected void
public void
public static void
writeFile(String dir, String fileName, String content)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allEventsback to summary
public List<InterpEvent> allEvents
currentEventback to summary
public InterpEvent currentEvent
currentScopeback to summary
public InstanceScope currentScope
errMgrback to summary
public ErrorManager errMgr
errorsback to summary
public List<STMessage> errors
interpback to summary
public Interpreter interp
outputback to summary
public String output
rootback to summary
public EvalTemplateEvent root
tmodelback to summary
public JTreeSTModel tmodel
traceback to summary
public List<String> trace
updateDepthback to summary
private final AtomicInteger updateDepth
viewFrameback to summary
public STViewFrame viewFrame
WINDOWS_LINE_ENDINGSback to summary
protected static final String WINDOWS_LINE_ENDINGS

Constructor Detail

STVizback to summary
public STViz(ErrorManager errMgr, EvalTemplateEvent root, String output, Interpreter interp, List<String> trace, List<STMessage> errors)

Method Detail

findEventAtOutputLocationback to summary
public InterpEvent findEventAtOutputLocation(List<InterpEvent> events, int charIndex)
highlightback to summary
protected final void highlight(JTextComponent comp, int i, int j)
highlightback to summary
protected void highlight(JTextComponent comp, int i, int j, boolean scroll)
mainback to summary
public static void main(String[] args) throws IOException
openback to summary
public void open()
setTextback to summary
protected void setText(JEditorPane component, String text)
test1back to summary
public static void test1() throws IOException
test2back to summary
public static void test2() throws IOException
test3back to summary
public static void test3() throws IOException
test4back to summary
public static void test4() throws IOException
toComponentPositionback to summary
protected int toComponentPosition(JTextComponent component, int position)
toEventPositionback to summary
protected int toEventPosition(JTextComponent component, int position)
updateAttributesback to summary
protected void updateAttributes(final InstanceScope scope, final STViewFrame m)
updateCurrentSTback to summary
private void updateCurrentST(STViewFrame m)
updateStackback to summary
protected void updateStack(InstanceScope scope, STViewFrame m)
waitForCloseback to summary
public void waitForClose() throws InterruptedException
writeFileback to summary
public static void writeFile(String dir, String fileName, String content)